diff options
Diffstat (limited to 'sw/source/ui/wrtsh')
-rw-r--r-- | sw/source/ui/wrtsh/navmgr.cxx | 2 |
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; |