summaryrefslogtreecommitdiff
path: root/desktop/source/pkgchk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-31 08:03:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-31 08:03:47 +0200
commit8fa038d895d67672131ad7ddb0792c3b2900b47d (patch)
tree7017e73b2a81a1360e81f281592c44842022b074 /desktop/source/pkgchk
parentc2f8beb5934aa345ff7b4aebc233c73c7642e487 (diff)
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: If839a783a57fb22566cc5e577f0f28463842f5dd
Diffstat (limited to 'desktop/source/pkgchk')
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx4
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_misc.cxx22
2 files changed, 13 insertions, 13 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
index 145117f7dd6a..e2bc45618142 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_cmdenv.cxx
@@ -346,11 +346,11 @@ void CommandEnvironmentImpl::update_( Any const & Status )
}
else {
OUStringBuffer buf;
- buf.appendAscii( "WARNING: " );
+ buf.append( "WARNING: " );
deployment::DeploymentException dp_exc;
if (Status >>= dp_exc) {
buf.append( dp_exc.Message );
- buf.appendAscii( ", Cause: " );
+ buf.append( ", Cause: " );
buf.append( ::comphelper::anyToString(dp_exc.Cause) );
}
else {
diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
index d86a455238cf..eac18d4ca8f2 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
@@ -51,16 +51,16 @@ OUString toString( OptionInfo const * info )
{
assert(info != 0);
OUStringBuffer buf;
- buf.appendAscii("--");
+ buf.append("--");
buf.appendAscii(info->m_name);
if (info->m_short_option != '\0')
{
- buf.appendAscii(" (short -" );
+ buf.append(" (short -" );
buf.append(info->m_short_option );
- buf.appendAscii(")");
+ buf.append(")");
}
if (info->m_has_argument)
- buf.appendAscii(" <argument>" );
+ buf.append(" <argument>" );
return buf.makeStringAndClear();
}
@@ -222,11 +222,11 @@ OUString makeAbsoluteFileUrl(
{
if (throw_exc) {
OUStringBuffer buf;
- buf.appendAscii( "making absolute file url failed: \"" );
+ buf.append( "making absolute file url failed: \"" );
buf.append( base_url );
- buf.appendAscii( "\" (base-url) and \"" );
+ buf.append( "\" (base-url) and \"" );
buf.append( file_url );
- buf.appendAscii( "\" (file-url)!" );
+ buf.append( "\" (file-url)!" );
throw RuntimeException( buf.makeStringAndClear() );
}
return OUString();
@@ -378,9 +378,9 @@ Reference<XComponentContext> connectToOffice(
OUString pipeId( ::dp_misc::generateRandomPipeId() );
OUStringBuffer buf;
- buf.appendAscii( "--accept=pipe,name=" );
+ buf.append( "--accept=pipe,name=" );
buf.append( pipeId );
- buf.appendAscii( ";urp;" );
+ buf.append( ";urp;" );
args[ 2 ] = buf.makeStringAndClear();
OUString appURL( getExecutableDir() + "/soffice" );
@@ -398,9 +398,9 @@ Reference<XComponentContext> connectToOffice(
dp_misc::writeConsole("OK. Connecting...");
OSL_ASSERT( buf.isEmpty() );
- buf.appendAscii( "uno:pipe,name=" );
+ buf.append( "uno:pipe,name=" );
buf.append( pipeId );
- buf.appendAscii( ";urp;StarOffice.ComponentContext" );
+ buf.append( ";urp;StarOffice.ComponentContext" );
Reference<XComponentContext> xRet(
::dp_misc::resolveUnoURL(
buf.makeStringAndClear(), xLocalComponentContext ),