diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 09:26:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-20 10:40:56 +0200 |
commit | 27fa7eff1d06914750fbda2582c655ddbb21dfa3 (patch) | |
tree | dfdab06999530f2f5054b78b809598e240e163a7 /cui/source/dialogs/multipat.cxx | |
parent | 4c0198b02c4a514bc61772d8c671c47c9553fd7a (diff) |
loplugin:oncevar in cui
Change-Id: I1bbd37a82f238327b5e52110c62cdd2a9b0a9c14
Reviewed-on: https://gerrit.libreoffice.org/39001
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/dialogs/multipat.cxx')
-rw-r--r-- | cui/source/dialogs/multipat.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cui/source/dialogs/multipat.cxx b/cui/source/dialogs/multipat.cxx index 0bdc805d7381..c4da4b668a85 100644 --- a/cui/source/dialogs/multipat.cxx +++ b/cui/source/dialogs/multipat.cxx @@ -288,12 +288,11 @@ OUString SvxMultiPathDialog::GetPath() const OUString SvxPathSelectDialog::GetPath() const { OUString sNewPath; - sal_Unicode cDelim = SVT_SEARCHPATH_DELIMITER; for ( sal_Int32 i = 0; i < m_pPathLB->GetEntryCount(); ++i ) { if ( !sNewPath.isEmpty() ) - sNewPath += OUStringLiteral1(cDelim); + sNewPath += OUStringLiteral1(SVT_SEARCHPATH_DELIMITER); sNewPath += *static_cast<OUString*>(m_pPathLB->GetEntryData(i)); } @@ -335,14 +334,12 @@ void SvxMultiPathDialog::SetPath( const OUString& rPath ) void SvxPathSelectDialog::SetPath(const OUString& rPath) { - sal_Unicode cDelim = SVT_SEARCHPATH_DELIMITER; - if ( !rPath.isEmpty() ) { sal_Int32 nIndex = 0; do { - const OUString sPath = rPath.getToken( 0, cDelim, nIndex ); + const OUString sPath = rPath.getToken( 0, SVT_SEARCHPATH_DELIMITER, nIndex ); OUString sSystemPath; bool bIsSystemPath = osl::FileBase::getSystemPathFromFileURL(sPath, sSystemPath) == osl::FileBase::E_None; |