summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:10 +0100
commite01e03ae6d10bfa4286663c9fe51249fce21b99f (patch)
tree178205cec19d0348273d4c5df0de060f388bb64f /tools
parentda7aa01435456b435b2e791a7c087d35ab5e3104 (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I88a3396746bf12c08265600072a368c9bbf5744e
Diffstat (limited to 'tools')
-rw-r--r--tools/qa/cppunit/test_urlobj.cxx8
-rw-r--r--tools/source/inet/inetmsg.cxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/qa/cppunit/test_urlobj.cxx b/tools/qa/cppunit/test_urlobj.cxx
index d0cab0abc03f..4c126c1bbb06 100644
--- a/tools/qa/cppunit/test_urlobj.cxx
+++ b/tools/qa/cppunit/test_urlobj.cxx
@@ -82,7 +82,7 @@ namespace tools_urlobj
{
INetURLObject aUrl;
aUrl.
- setFSysPath( OUString( "\\\\137.65.170.24\\c$\\Img0001.jpg" ),
+ setFSysPath( "\\\\137.65.170.24\\c$\\Img0001.jpg",
INetURLObject::FSYS_DETECT );
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
@@ -108,7 +108,7 @@ namespace tools_urlobj
{
INetURLObject aUrl;
aUrl.
- setFSysPath( OUString( "\\\\hive-winxp-x86\\pmladek\\test2.odt" ),
+ setFSysPath( "\\\\hive-winxp-x86\\pmladek\\test2.odt",
INetURLObject::FSYS_DETECT );
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
@@ -151,7 +151,7 @@ namespace tools_urlobj
void urlobjTest_005( )
{
INetURLObject aUrl;
- aUrl.setFSysPath( OUString( "//137.65.170.24/c$/Img0001.jpg" ),
+ aUrl.setFSysPath( "//137.65.170.24/c$/Img0001.jpg",
INetURLObject::FSYS_DETECT );
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
@@ -176,7 +176,7 @@ namespace tools_urlobj
void urlobjTest_006( )
{
INetURLObject aUrl;
- aUrl.setFSysPath( OUString( "//hive-winxp-x86/pmladek/test2.odt" ),
+ aUrl.setFSysPath( "//hive-winxp-x86/pmladek/test2.odt",
INetURLObject::FSYS_DETECT );
#ifdef LINUX
CPPUNIT_ASSERT( aUrl.GetMainURL( INetURLObject::NO_DECODE )
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx
index 8b74bd0aeb18..79692a5f371d 100644
--- a/tools/source/inet/inetmsg.cxx
+++ b/tools/source/inet/inetmsg.cxx
@@ -290,10 +290,10 @@ bool INetMIMEMessage::EnableAttachMultipartFormDataChild()
m_aBoundary += sTail;
// Set header fields.
- SetMIMEVersion(OUString("1.0"));
+ SetMIMEVersion("1.0");
SetContentType(
OUString::fromUtf8("multipart/form-data; boundary=" + m_aBoundary));
- SetContentTransferEncoding(OUString("7bit"));
+ SetContentTransferEncoding("7bit");
// Done.
return true;