diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-26 21:24:07 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-26 21:24:29 +0200 |
commit | 43c00bc48978a2c148d6f0622f40d3b40a93eb6c (patch) | |
tree | d0b308203578d3b99cd31aa9136978e50edb14b1 /cui/source/dialogs/hldoctp.cxx | |
parent | a7e273755095e4b97c05a63ab39aa09f8aa755a4 (diff) |
Clean up aEmptyStr
Change-Id: I5befe9deac917a28e80ed193b67ff29b5ba35149
Diffstat (limited to 'cui/source/dialogs/hldoctp.cxx')
-rw-r--r-- | cui/source/dialogs/hldoctp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx index 5eb75ed38173..92c15d7e213a 100644 --- a/cui/source/dialogs/hldoctp.cxx +++ b/cui/source/dialogs/hldoctp.cxx @@ -120,7 +120,7 @@ OUString SvxHyperlinkDocTp::GetCurrentURL () OUString aStrPath ( m_pCbbPath->GetText() ); OUString aStrMark( m_pEdTarget->GetText() ); - if ( aStrPath != aEmptyStr ) + if ( !aStrPath.isEmpty() ) { INetURLObject aURL( aStrPath ); if ( aURL.GetProtocol() != INetProtocol::NotValid ) // maybe the path is already a valid @@ -129,11 +129,11 @@ OUString SvxHyperlinkDocTp::GetCurrentURL () osl::FileBase::getFileURLFromSystemPath( aStrPath, aStrURL ); //#105788# always create a URL even if it is not valid - if( aStrURL == aEmptyStr ) + if( aStrURL.isEmpty() ) aStrURL = aStrPath; } - if( aStrMark != aEmptyStr ) + if( !aStrMark.isEmpty() ) { aStrURL += OUString( sHash ); aStrURL += aStrMark; @@ -238,7 +238,7 @@ IMPL_LINK_NOARG_TYPED(SvxHyperlinkDocTp, ClickTargetHdl_Impl, Button*, void) EnterWait(); if ( maStrURL.equalsIgnoreAsciiCase( sFileScheme ) ) - mpMarkWnd->RefreshTree ( aEmptyStr ); + mpMarkWnd->RefreshTree ( "" ); else mpMarkWnd->RefreshTree ( maStrURL ); @@ -283,7 +283,7 @@ IMPL_LINK_NOARG_TYPED(SvxHyperlinkDocTp, TimeoutHdl_Impl, Timer *, void) EnterWait(); if ( maStrURL.equalsIgnoreAsciiCase( sFileScheme ) ) - mpMarkWnd->RefreshTree ( aEmptyStr ); + mpMarkWnd->RefreshTree ( "" ); else mpMarkWnd->RefreshTree ( maStrURL ); |