diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-19 16:59:40 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-19 17:07:46 +0400 |
commit | d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch) | |
tree | a99079bda02a9d8dd5bd0d54666164f362314c52 /comphelper/source | |
parent | 704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff) |
Get rid of size() == 0
Diffstat (limited to 'comphelper/source')
-rw-r--r-- | comphelper/source/container/container.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/container/container.cxx b/comphelper/source/container/container.cxx index ffc514f81261..7bf2f8f6b160 100644 --- a/comphelper/source/container/container.cxx +++ b/comphelper/source/container/container.cxx @@ -113,7 +113,7 @@ IndexAccessIterator::~IndexAccessIterator() {} bCheckingStartingPoint = sal_False; } - if ((m_arrChildIndizies.size() == 0) && !bCheckingStartingPoint) + if (m_arrChildIndizies.empty() && !bCheckingStartingPoint) { // das ist genau dann der Fall, wenn ich keinen rechten Nachbarn fuer irgendeinen der direkten Vorfahren des // urspruenglichen xSearchLoop gefunden habe bHasMoreToSearch = sal_False; @@ -138,7 +138,7 @@ IndexAccessIterator::~IndexAccessIterator() {} if (!bFoundSomething) { - OSL_ENSURE(m_arrChildIndizies.size() == 0, "IndexAccessIterator::Next : items left on stack ! how this ?"); + OSL_ENSURE(m_arrChildIndizies.empty(), "IndexAccessIterator::Next : items left on stack ! how this ?"); Invalidate(); } |