diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:18:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:18:26 +0200 |
commit | d2846c46624d3996b98a3810b083452f49400cb4 (patch) | |
tree | bada00b5be6cd94285e6587c481a46f344b9b8f9 | |
parent | c556c65d7179a7aabe6553f2c9fc4f573d39355e (diff) |
loplugin:stringcopy: desktop
Change-Id: Ic27d5296dc6854a27f4848dc9047feef90cb6ff7
-rw-r--r-- | desktop/source/app/dispatchwatcher.cxx | 2 | ||||
-rw-r--r-- | desktop/source/pkgchk/unopkg/unopkg_app.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index 6b439f50ad4f..b23627748edf 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -632,7 +632,7 @@ bool DispatchWatcher::executeDispatchRequests( const std::vector<DispatchRequest // create the printer Sequence < PropertyValue > aPrinterArgs( 1 ); aPrinterArgs[0].Name = "Name"; - aPrinterArgs[0].Value <<= OUString( aDispatchRequest.aPrinterName ); + aPrinterArgs[0].Value <<= aDispatchRequest.aPrinterName; xDoc->setPrinter( aPrinterArgs ); } diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx index 31a93cecea8a..b50374694e41 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx @@ -598,7 +598,7 @@ extern "C" int unopkg_main() Any exc( ::cppu::getCaughtException() ); dp_misc::writeConsoleError("\nERROR: " + - OUString(option_verbose ? e.Message + "\nException details: \n" + + (option_verbose ? e.Message + "\nException details: \n" + ::comphelper::anyToString(exc) : e.Message) + "\n"); } if (!bNoOtherErrorMsg) |