summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-19 17:18:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-19 17:18:53 +0200
commitbb134f41f0abc7151712b115acb5eb2295b91b3b (patch)
tree908d685ee26b68250986a2e0fb3232ac3691e381 /comphelper
parentc7d1236640cd282f95b97f1f966b63c7f2cfef9d (diff)
loplugin:stringcopy: comphelper
Change-Id: Icb7d43c95ee5d53fdf6b1cdb92953df8488d1ef1
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/officeinstdir/officeinstallationdirectories.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
index 6d6e1de7cf19..48295a494841 100644
--- a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
+++ b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
@@ -102,7 +102,7 @@ OUString SAL_CALL
OfficeInstallationDirectories::getOfficeInstallationDirectoryURL()
{
initDirs();
- return OUString( *m_pOfficeBrandDir );
+ return *m_pOfficeBrandDir;
}
@@ -111,7 +111,7 @@ OUString SAL_CALL
OfficeInstallationDirectories::getOfficeUserDataDirectoryURL()
{
initDirs();
- return OUString( *m_pUserDir );
+ return *m_pUserDir;
}
@@ -130,24 +130,24 @@ OfficeInstallationDirectories::makeRelocatableURL( const OUString& URL )
sal_Int32 nIndex = aCanonicalURL.indexOf( *m_pOfficeBrandDir );
if ( nIndex != -1 )
{
- return OUString(
+ return
aCanonicalURL.replaceAt( nIndex,
m_pOfficeBrandDir->getLength(),
- m_aOfficeBrandDirMacro ) );
+ m_aOfficeBrandDirMacro );
}
else
{
nIndex = aCanonicalURL.indexOf( *m_pUserDir );
if ( nIndex != -1 )
{
- return OUString(
+ return
aCanonicalURL.replaceAt( nIndex,
m_pUserDir->getLength(),
- m_aUserDirMacro ) );
+ m_aUserDirMacro );
}
}
}
- return OUString( URL );
+ return URL;
}
@@ -162,10 +162,10 @@ OfficeInstallationDirectories::makeAbsoluteURL( const OUString& URL )
{
initDirs();
- return OUString(
+ return
URL.replaceAt( nIndex,
m_aOfficeBrandDirMacro.getLength(),
- *m_pOfficeBrandDir ) );
+ *m_pOfficeBrandDir );
}
else
{
@@ -174,14 +174,14 @@ OfficeInstallationDirectories::makeAbsoluteURL( const OUString& URL )
{
initDirs();
- return OUString(
+ return
URL.replaceAt( nIndex,
m_aUserDirMacro.getLength(),
- *m_pUserDir ) );
+ *m_pUserDir );
}
}
}
- return OUString( URL );
+ return URL;
}