diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-09-27 00:45:21 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-09-27 13:45:20 -0400 |
commit | fb7053ca7cf439372cfd5abb7ab788cbd416c219 (patch) | |
tree | fe6135784cef7a8d45dec3132ecadb4d6870c357 /svtools | |
parent | Let's use std::vector directly. (diff) | |
download | core-fb7053ca7cf439372cfd5abb7ab788cbd416c219.tar.gz core-fb7053ca7cf439372cfd5abb7ab788cbd416c219.zip |
Correct prefix for integer type.
Change-Id: I57668a3a288b4ffc4f0adf6614cdd7e50d21fdf8
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/treelist.hxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/svtools/inc/svtools/treelist.hxx b/svtools/inc/svtools/treelist.hxx index ed1761fba55e..98e56758e03a 100644 --- a/svtools/inc/svtools/treelist.hxx +++ b/svtools/inc/svtools/treelist.hxx @@ -67,7 +67,7 @@ class SVT_DLLPUBLIC SvTreeEntryList { private: std::vector<SvListEntry*> maEntryList; - size_t maCurrent; + size_t mnCurrent; public: SvTreeEntryList(); diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index d832f475406b..72f24a10b336 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -31,7 +31,7 @@ DBG_NAME(SvListEntry); -SvTreeEntryList::SvTreeEntryList() { maCurrent = 0; }; +SvTreeEntryList::SvTreeEntryList() : mnCurrent(0) {} void SvTreeEntryList::push_back( SvListEntry* pItem ) { @@ -116,13 +116,13 @@ const SvListEntry* SvTreeEntryList::operator[](size_t i) const SvListEntry* SvTreeEntryList::First() { - maCurrent = 0; - return ( maCurrent < maEntryList.size() ) ? maEntryList[ 0 ] : NULL; + mnCurrent = 0; + return ( mnCurrent < maEntryList.size() ) ? maEntryList[ 0 ] : NULL; } SvListEntry* SvTreeEntryList::Next() { - return ( maCurrent+1 < maEntryList.size() ) ? maEntryList[ ++maCurrent ] : NULL; + return ( mnCurrent+1 < maEntryList.size() ) ? maEntryList[ ++mnCurrent ] : NULL; } SvListEntry* SvTreeEntryList::last() @@ -143,7 +143,7 @@ void SvTreeEntryList::DestroyAll() SvTreeEntryList::SvTreeEntryList(const SvTreeEntryList& rList) { maEntryList.clear(); - maCurrent = 0; + mnCurrent = 0; for ( size_t i = 0, n = rList.size(); i < n; ++i ) maEntryList.push_back(const_cast<SvListEntry*>(rList[i])); } |