diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-30 23:22:36 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-09-12 14:18:50 +0200 |
commit | b2e6bb75e03386b958d5e7c066e7768e43726f47 (patch) | |
tree | eee8d8d4b1da89de0bf6c974c93d791106daeaaa /cui/source/dialogs | |
parent | c5909e251871e5a38992fade94a489a9546e11b7 (diff) |
Simplify
Change-Id: I7e93874ed5127c9d674d53b220ba680718bd82ab
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r-- | cui/source/dialogs/multipat.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cui/source/dialogs/multipat.cxx b/cui/source/dialogs/multipat.cxx index 4d454c78daf7..cd6dca3af00a 100644 --- a/cui/source/dialogs/multipat.cxx +++ b/cui/source/dialogs/multipat.cxx @@ -346,11 +346,7 @@ void SvxPathSelectDialog::SetPath(const OUString& rPath) bool bIsSystemPath = osl::FileBase::getSystemPathFromFileURL(sPath, sSystemPath) == osl::FileBase::E_None; - sal_Int32 nPos = 0; - if ( bIsSystemPath ) - nPos = m_pPathLB->InsertEntry( sSystemPath ); - else - nPos = m_pPathLB->InsertEntry( sPath ); + const sal_Int32 nPos = m_pPathLB->InsertEntry( bIsSystemPath ? sSystemPath : sPath ); m_pPathLB->SetEntryData( nPos, new OUString( sPath ) ); } |