Kaydet (Commit) 5e762746 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: OUStringBuffer: appendAscii -> append

Change-Id: I957d08e78d6ce5c45cc2a4310b9300698550123c
üst d57a3352
...@@ -412,15 +412,15 @@ static void addFileError(OUStringBuffer& _rBuf, OUString const& _aPath, AsciiStr ...@@ -412,15 +412,15 @@ static void addFileError(OUStringBuffer& _rBuf, OUString const& _aPath, AsciiStr
{ {
OUString sSimpleFileName = _aPath.copy(1 +_aPath.lastIndexOf(cURLSeparator)); OUString sSimpleFileName = _aPath.copy(1 +_aPath.lastIndexOf(cURLSeparator));
_rBuf.appendAscii("The configuration file"); _rBuf.append("The configuration file");
_rBuf.appendAscii(" '").append(sSimpleFileName).appendAscii("' "); _rBuf.append(" '").append(sSimpleFileName).append("' ");
_rBuf.appendAscii(_sWhat).appendAscii(PERIOD); _rBuf.appendAscii(_sWhat).appendAscii(PERIOD);
} }
static void addMissingDirectoryError(OUStringBuffer& _rBuf, OUString const& _aPath) static void addMissingDirectoryError(OUStringBuffer& _rBuf, OUString const& _aPath)
{ {
_rBuf.appendAscii("The configuration directory"); _rBuf.append("The configuration directory");
_rBuf.appendAscii(" '").append(_aPath).appendAscii("' "); _rBuf.append(" '").append(_aPath).append("' ");
_rBuf.appendAscii(IS_MISSING).appendAscii(PERIOD); _rBuf.appendAscii(IS_MISSING).appendAscii(PERIOD);
} }
...@@ -436,7 +436,7 @@ static Bootstrap::FailureCode describeError(OUStringBuffer& _rBuf, Bootstrap::Im ...@@ -436,7 +436,7 @@ static Bootstrap::FailureCode describeError(OUStringBuffer& _rBuf, Bootstrap::Im
{ {
Bootstrap::FailureCode eErrCode = Bootstrap::INVALID_BOOTSTRAP_DATA; 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) switch (_rData.aUserInstall_.status)
{ {
......
...@@ -69,7 +69,7 @@ OUString DocInfoHelper::GetGeneratorString() ...@@ -69,7 +69,7 @@ OUString DocInfoHelper::GetGeneratorString()
// build_information has '(' and '[' encoded as '$', ')' and ']' ignored // build_information has '(' and '[' encoded as '$', ')' and ']' ignored
// and ':' replaced by '-' // and ':' replaced by '-'
{ {
aResult.appendAscii( "LibreOffice_project/" ); aResult.append( "LibreOffice_project/" );
OUString aDefault; OUString aDefault;
OUString aBuildId( Bootstrap::getBuildIdData( aDefault ) ); OUString aBuildId( Bootstrap::getBuildIdData( aDefault ) );
for( sal_Int32 i=0; i < aBuildId.getLength(); i++ ) for( sal_Int32 i=0; i < aBuildId.getLength(); i++ )
......
...@@ -205,7 +205,7 @@ void SvtExtendedSecurityOptions_Impl::FillExtensionHashMap( ExtensionHashMap& aH ...@@ -205,7 +205,7 @@ void SvtExtendedSecurityOptions_Impl::FillExtensionHashMap( ExtensionHashMap& aH
{ {
// Create access name for property // Create access name for property
OUStringBuffer aExtEntryProp( m_aSecureExtensionsSetName ); OUStringBuffer aExtEntryProp( m_aSecureExtensionsSetName );
aExtEntryProp.appendAscii( "/" ); aExtEntryProp.append( "/" );
aExtEntryProp.append( seqNodes[i] ); aExtEntryProp.append( seqNodes[i] );
aExtEntryProp.append( m_aExtensionPropName ); aExtEntryProp.append( m_aExtensionPropName );
......
...@@ -58,9 +58,9 @@ ...@@ -58,9 +58,9 @@
#define SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION(SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION_PARAM_EXCEPTION) \ #define SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION(SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION_PARAM_EXCEPTION) \
{ \ { \
OUStringBuffer sMsg(256); \ 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.append (SVTVIEWOPTIONS_LOG_UNEXPECTED_EXCEPTION_PARAM_EXCEPTION.Message); \
sMsg.appendAscii("\"" ); \ sMsg.append("\"" ); \
} }
// initialization! // initialization!
......
...@@ -309,9 +309,9 @@ void LocaleDataWrapper::invalidateData() ...@@ -309,9 +309,9 @@ void LocaleDataWrapper::invalidateData()
{ {
OUStringBuffer aMsg("ConvertIsoNamesToLanguage/ConvertLanguageToIsoNames: ambiguous locale (MS-LCID?)\n"); OUStringBuffer aMsg("ConvertIsoNamesToLanguage/ConvertLanguageToIsoNames: ambiguous locale (MS-LCID?)\n");
aMsg.append(aDebugLocale); aMsg.append(aDebugLocale);
aMsg.appendAscii(" -> 0x"); aMsg.append(" -> 0x");
aMsg.append(static_cast<sal_Int32>(eLang), 16); aMsg.append(static_cast<sal_Int32>(eLang), 16);
aMsg.appendAscii(" -> "); aMsg.append(" -> ");
aMsg.append(aBackLanguageTag.getBcp47()); aMsg.append(aBackLanguageTag.getBcp47());
outputCheckMessage( aMsg.makeStringAndClear() ); outputCheckMessage( aMsg.makeStringAndClear() );
} }
...@@ -1682,10 +1682,10 @@ OUString LocaleDataWrapper::appendLocaleInfo(const OUString& rDebugMsg) const ...@@ -1682,10 +1682,10 @@ OUString LocaleDataWrapper::appendLocaleInfo(const OUString& rDebugMsg) const
OUStringBuffer aDebugMsg(rDebugMsg); OUStringBuffer aDebugMsg(rDebugMsg);
aDebugMsg.append('\n'); aDebugMsg.append('\n');
aDebugMsg.append(maLanguageTag.getBcp47()); aDebugMsg.append(maLanguageTag.getBcp47());
aDebugMsg.appendAscii(" requested\n"); aDebugMsg.append(" requested\n");
LanguageTag aLoaded = getLoadedLanguageTag(); LanguageTag aLoaded = getLoadedLanguageTag();
aDebugMsg.append(aLoaded.getBcp47()); aDebugMsg.append(aLoaded.getBcp47());
aDebugMsg.appendAscii(" loaded"); aDebugMsg.append(" loaded");
return aDebugMsg.makeStringAndClear(); return aDebugMsg.makeStringAndClear();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment