diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:00:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-31 08:00:47 +0200 |
commit | 5e7627469cad44e10bcc9a764631b9ee2c682dc1 (patch) | |
tree | 9f8226b506483ae5aa5073f8b381dda5ea2fd570 /unotools | |
parent | d57a33520003ef6f88277dd4ea57cf662b10aac5 (diff) |
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I957d08e78d6ce5c45cc2a4310b9300698550123c
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/bootstrap.cxx | 10 | ||||
-rw-r--r-- | unotools/source/config/docinfohelper.cxx | 2 | ||||
-rw-r--r-- | unotools/source/config/extendedsecurityoptions.cxx | 2 | ||||
-rw-r--r-- | unotools/source/config/viewoptions.cxx | 4 | ||||
-rw-r--r-- | unotools/source/i18n/localedatawrapper.cxx | 8 |
5 files changed, 13 insertions, 13 deletions
diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx index 2c145b80b507..47bf2610a0c6 100644 --- a/unotools/source/config/bootstrap.cxx +++ b/unotools/source/config/bootstrap.cxx @@ -412,15 +412,15 @@ static void addFileError(OUStringBuffer& _rBuf, OUString const& _aPath, AsciiStr { OUString sSimpleFileName = _aPath.copy(1 +_aPath.lastIndexOf(cURLSeparator)); - _rBuf.appendAscii("The configuration file"); - _rBuf.appendAscii(" '").append(sSimpleFileName).appendAscii("' "); + _rBuf.append("The configuration file"); + _rBuf.append(" '").append(sSimpleFileName).append("' "); _rBuf.appendAscii(_sWhat).appendAscii(PERIOD); } static void addMissingDirectoryError(OUStringBuffer& _rBuf, OUString const& _aPath) { - _rBuf.appendAscii("The configuration directory"); - _rBuf.appendAscii(" '").append(_aPath).appendAscii("' "); + _rBuf.append("The configuration directory"); + _rBuf.append(" '").append(_aPath).append("' "); _rBuf.appendAscii(IS_MISSING).appendAscii(PERIOD); } @@ -436,7 +436,7 @@ static Bootstrap::FailureCode describeError(OUStringBuffer& _rBuf, Bootstrap::Im { Bootstrap::FailureCode eErrCode = Bootstrap::INVALID_BOOTSTRAP_DATA; - _rBuf.appendAscii("The program cannot be started. "); + _rBuf.append("The program cannot be started. "); switch (_rData.aUserInstall_.status) { diff --git a/unotools/source/config/docinfohelper.cxx b/unotools/source/config/docinfohelper.cxx index b5d0cf9aa7b4..d4f6547a020b 100644 --- a/unotools/source/config/docinfohelper.cxx +++ b/unotools/source/config/docinfohelper.cxx @@ -69,7 +69,7 @@ OUString DocInfoHelper::GetGeneratorString() // build_information has '(' and '[' encoded as '$', ')' and ']' ignored // and ':' replaced by '-' { - aResult.appendAscii( "LibreOffice_project/" ); + aResult.append( "LibreOffice_project/" ); OUString aDefault; OUString aBuildId( Bootstrap::getBuildIdData( aDefault ) ); for( sal_Int32 i=0; i < aBuildId.getLength(); i++ ) diff --git a/unotools/source/config/extendedsecurityoptions.cxx b/unotools/source/config/extendedsecurityoptions.cxx index 7ca01f35909a..2622d935e894 100644 --- a/unotools/source/config/extendedsecurityoptions.cxx +++ b/unotools/source/config/extendedsecurityoptions.cxx @@ -205,7 +205,7 @@ void SvtExtendedSecurityOptions_Impl::FillExtensionHashMap( ExtensionHashMap& aH { // Create access name for property OUStringBuffer aExtEntryProp( m_aSecureExtensionsSetName ); - aExtEntryProp.appendAscii( "/" ); + aExtEntryProp.append( "/" ); aExtEntryProp.append( seqNodes[i] ); aExtEntryProp.append( m_aExtensionPropName ); diff --git a/unotools/source/config/viewoptions.cxx b/unotools/source/config/viewoptions.cxx index ef336153f7b3..d1d940aacb78 100644 --- a/unotools/source/config/viewoptions.cxx +++ b/unotools/source/config/viewoptions.cxx @@ -58,9 +58,9 @@ #define SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION(SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION_PARAM_EXCEPTION) \ { \ OUStringBuffer sMsg(256); \ - sMsg.appendAscii("Unexpected exception catched. Original message was:\n\"" ); \ + sMsg.append("Unexpected exception catched. Original message was:\n\"" ); \ sMsg.append (SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION_PARAM_EXCEPTION.Message); \ - sMsg.appendAscii("\"" ); \ + sMsg.append("\"" ); \ } // initialization! diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index d380cab3d316..30cfbcf18b16 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -309,9 +309,9 @@ void LocaleDataWrapper::invalidateData() { OUStringBuffer aMsg("ConvertIsoNamesToLanguage/ConvertLanguageToIsoNames: ambiguous locale (MS-LCID?)\n"); aMsg.append(aDebugLocale); - aMsg.appendAscii(" -> 0x"); + aMsg.append(" -> 0x"); aMsg.append(static_cast<sal_Int32>(eLang), 16); - aMsg.appendAscii(" -> "); + aMsg.append(" -> "); aMsg.append(aBackLanguageTag.getBcp47()); outputCheckMessage( aMsg.makeStringAndClear() ); } @@ -1682,10 +1682,10 @@ OUString LocaleDataWrapper::appendLocaleInfo(const OUString& rDebugMsg) const OUStringBuffer aDebugMsg(rDebugMsg); aDebugMsg.append('\n'); aDebugMsg.append(maLanguageTag.getBcp47()); - aDebugMsg.appendAscii(" requested\n"); + aDebugMsg.append(" requested\n"); LanguageTag aLoaded = getLoadedLanguageTag(); aDebugMsg.append(aLoaded.getBcp47()); - aDebugMsg.appendAscii(" loaded"); + aDebugMsg.append(" loaded"); return aDebugMsg.makeStringAndClear(); } |