diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:03:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:03:15 +0200 |
commit | e9b75064158a9482d79a123319ad0fe8c497e40a (patch) | |
tree | d6ed41177bc5682addc6cbf218bd51f533e640f7 /framework/source/services | |
parent | 2cef646fc19add099d3da7ef46865390e7ca7b16 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: Iadb6e16a7aca322a78a82ae1a52f5d085b300efc
Diffstat (limited to 'framework/source/services')
-rw-r--r-- | framework/source/services/autorecovery.cxx | 10 | ||||
-rw-r--r-- | framework/source/services/desktop.cxx | 2 | ||||
-rw-r--r-- | framework/source/services/pathsettings.cxx | 10 | ||||
-rw-r--r-- | framework/source/services/substitutepathvars.cxx | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx index 1b0033f81f5a..531c443d8ba1 100644 --- a/framework/source/services/autorecovery.cxx +++ b/framework/source/services/autorecovery.cxx @@ -3507,9 +3507,9 @@ void AutoRecovery::implts_openOneDoc(const OUString& sURL , // re-throw OUStringBuffer sMsg(256); - sMsg.appendAscii("Recovery of \""); + sMsg.append("Recovery of \""); sMsg.append (sURL ); - sMsg.appendAscii("\" failed." ); + sMsg.append("\" failed." ); throw css::lang::WrappedTargetException( sMsg.makeStringAndClear(), @@ -3541,8 +3541,8 @@ void AutoRecovery::implts_generateNewTempURL(const OUString& sBack sUniqueName.append(aURL.Name); } else if (!rInfo.FactoryURL.isEmpty()) - sUniqueName.appendAscii("untitled"); - sUniqueName.appendAscii("_"); + sUniqueName.append("untitled"); + sUniqueName.append("_"); // TODO: Must we strip some illegal signes - if we use the title? @@ -4355,7 +4355,7 @@ void AutoRecovery::st_impl_removeLockFile() OUStringBuffer sLockURLBuf; sLockURLBuf.append (sUserURL); - sLockURLBuf.appendAscii("/.lock"); + sLockURLBuf.append("/.lock"); OUString sLockURL = sLockURLBuf.makeStringAndClear(); AutoRecovery::st_impl_removeFile(sLockURL); diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index 9c2eb1c02e79..82f24c77a9f3 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -112,7 +112,7 @@ void Desktop::constructorInit() OUStringBuffer sUntitledPrefix (256); sUntitledPrefix.append (FWK_RESSTR(STR_UNTITLED_DOCUMENT)); - sUntitledPrefix.appendAscii (" "); + sUntitledPrefix.append (" "); ::comphelper::NumberedCollection* pNumbers = new ::comphelper::NumberedCollection (); m_xTitleNumberGenerator = css::uno::Reference< css::frame::XUntitledNumbers >(static_cast< ::cppu::OWeakObject* >(pNumbers), css::uno::UNO_QUERY_THROW); diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx index 5296c8fde73e..82c85aa7667d 100644 --- a/framework/source/services/pathsettings.cxx +++ b/framework/source/services/pathsettings.cxx @@ -1023,7 +1023,7 @@ OUString PathSettings::impl_convertPath2OldStyle(const PathSettings::PathInfo& r sPathVal.append(*pIt); ++pIt; if (pIt != lTemp.end()) - sPathVal.appendAscii(";"); + sPathVal.append(";"); } return sPathVal.makeStringAndClear(); @@ -1244,9 +1244,9 @@ void PathSettings::impl_setPathValue( sal_Int32 nID , if (aChangePath.bIsSinglePath) { OUStringBuffer sMsg(256); - sMsg.appendAscii("The path '" ); + sMsg.append("The path '" ); sMsg.append (aChangePath.sPathName); - sMsg.appendAscii("' is defined as SINGLE_PATH. It's sub set of internal paths can't be set."); + sMsg.append("' is defined as SINGLE_PATH. It's sub set of internal paths can't be set."); throw css::uno::Exception(sMsg.makeStringAndClear(), static_cast< ::cppu::OWeakObject* >(this)); } @@ -1265,9 +1265,9 @@ void PathSettings::impl_setPathValue( sal_Int32 nID , if (aChangePath.bIsSinglePath) { OUStringBuffer sMsg(256); - sMsg.appendAscii("The path '" ); + sMsg.append("The path '" ); sMsg.append (aChangePath.sPathName); - sMsg.appendAscii("' is defined as SINGLE_PATH. It's sub set of internal paths can't be set."); + sMsg.append("' is defined as SINGLE_PATH. It's sub set of internal paths can't be set."); throw css::uno::Exception(sMsg.makeStringAndClear(), static_cast< ::cppu::OWeakObject* >(this)); } diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index ad75eee41d14..65ff79d9ed77 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -844,7 +844,7 @@ OUString SubstitutePathVariables::GetPathVariableValue() const { osl::FileBase::getFileURLFromSystemPath( sToken, aTmp ); if ( bAppendSep ) - aPathStrBuffer.appendAscii( ";" ); // Office uses ';' as path separator + aPathStrBuffer.append( ";" ); // Office uses ';' as path separator aPathStrBuffer.append( aTmp ); bAppendSep = true; } |