summaryrefslogtreecommitdiff
path: root/sw/source/ui/wrtsh
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-19 16:59:40 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-19 17:07:46 +0400
commitd30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch)
treea99079bda02a9d8dd5bd0d54666164f362314c52 /sw/source/ui/wrtsh
parent704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff)
Get rid of size() == 0
Diffstat (limited to 'sw/source/ui/wrtsh')
-rw-r--r--sw/source/ui/wrtsh/navmgr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/wrtsh/navmgr.cxx b/sw/source/ui/wrtsh/navmgr.cxx
index 6ee622241e8c..66a53f14b5cf 100644
--- a/sw/source/ui/wrtsh/navmgr.cxx
+++ b/sw/source/ui/wrtsh/navmgr.cxx
@@ -201,7 +201,7 @@ bool SwNavigationMgr::addEntry(const SwPosition& rPos) {
bRet = true;
}
else {
- if ( (m_entries.size() > 0 && *m_entries.back()->GetPoint() != rPos) || (m_entries.size() == 0) ) {
+ if ( (!m_entries.empty() && *m_entries.back()->GetPoint() != rPos) || m_entries.empty() ) {
SwUnoCrsr *const pCursor = m_rMyShell.GetDoc()->CreateUnoCrsr(rPos);
m_entries.push_back(::boost::shared_ptr<SwUnoCrsr>(pCursor));
bRet = true;