loplugin:stringconstant: OUStringBuffer: appendAscii -> append

Change-Id: I09552b4ddd8900952f499c8b9c44933c7240c866
This commit is contained in:
Stephan Bergmann
2015-08-31 08:02:57 +02:00
parent 6e31a794fa
commit aa80dcf534
3 changed files with 6 additions and 6 deletions

View File

@@ -160,9 +160,9 @@ JavaInfo* createJavaInfo(const rtl::Reference<VendorBase> & info)
buf.append(info->getRuntimeLibrary());
if (!info->getLibraryPath().isEmpty())
{
buf.appendAscii("\n");
buf.append("\n");
buf.append(info->getLibraryPath());
buf.appendAscii("\n");
buf.append("\n");
}
OUString sVendorData = buf.makeStringAndClear();

View File

@@ -195,9 +195,9 @@ bool getAndAddJREInfoByPath(
OUStringBuffer buf( 255);
buf.append( getLibraryLocation());
#ifdef MACOSX
buf.appendAscii( "/../" LIBO_ETC_FOLDER );
buf.append( "/../" LIBO_ETC_FOLDER );
#endif
buf.appendAscii( SAL_CONFIGFILE("/sunjavaplugin") );
buf.append( SAL_CONFIGFILE("/sunjavaplugin") );
sIni = buf.makeStringAndClear();
JFW_TRACE2("Using configuration file " << sIni);
return sIni;

View File

@@ -49,9 +49,9 @@ struct Bootstrap :
#ifdef MACOSX
// For some reason the jvmfwk3rc file is traditionally in
// LIBO_URE_ETC_FOLDER
buf.appendAscii( "/../" LIBO_URE_ETC_FOLDER );
buf.append( "/../" LIBO_URE_ETC_FOLDER );
#endif
buf.appendAscii(SAL_CONFIGFILE("/jvmfwk3"));
buf.append(SAL_CONFIGFILE("/jvmfwk3"));
OUString sIni = buf.makeStringAndClear();
::rtl::Bootstrap * bootstrap = new ::rtl::Bootstrap(sIni);
SAL_INFO("jfw.level2", "Using configuration file " << sIni);