diff options
Diffstat (limited to 'sfx2/source/appl/newhelp.cxx')
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index 6b09c100bea8..53253d109fff 100644 --- a/sfx2/source/appl/newhelp.cxx +++ b/sfx2/source/appl/newhelp.cxx @@ -677,7 +677,7 @@ void IndexTabPage_Impl::InitializeIndex() { // abi: Do not copy, but use references const ::rtl::OUString& aKeywordPair = aKeywordList[i]; - DBG_ASSERT( aKeywordPair.getLength() > 0, "invalid help index" ); + DBG_ASSERT( !aKeywordPair.isEmpty(), "invalid help index" ); const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aRefList = aKeywordRefList[i]; const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aAnchorList = aAnchorRefList[i]; const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aTitleList = aTitleRefList[i]; @@ -1491,7 +1491,7 @@ void BookmarksTabPage_Impl::AddBookmarks( const String& rTitle, const String& rU sHelpURL.append(sContent); String sURL = String(sHelpURL.makeStringAndClear()); AppendConfigToken(sURL, bUseQuestionMark); - if (sAnchor.getLength()) + if (!sAnchor.isEmpty()) sURL += String(sAnchor); return ::rtl::OUString(sURL); } |