summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-30 17:53:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-31 12:57:36 +0200
commitfab5a47c0cbd001fb0b607069561e8fe20abb328 (patch)
tree8a0f7398fc34bf6dead0c00389ba51034be8da23 /io
parentfdc49438d5b039506e853098d4bb3bc2fed5c271 (diff)
Improved loplugin:stringconstant (now that GCC 7 supports it): io
Change-Id: Ia1bf6c89a0c70941f251dcbc68061df7bd3457b4 Reviewed-on: https://gerrit.libreoffice.org/76668 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'io')
-rw-r--r--io/source/TextInputStream/TextInputStream.cxx2
-rw-r--r--io/source/TextOutputStream/TextOutputStream.cxx2
-rw-r--r--io/source/acceptor/acceptor.cxx2
-rw-r--r--io/source/connector/connector.cxx2
-rw-r--r--io/source/stm/odata.cxx8
-rw-r--r--io/source/stm/omark.cxx4
-rw-r--r--io/source/stm/opipe.cxx2
-rw-r--r--io/source/stm/opump.cxx2
8 files changed, 12 insertions, 12 deletions
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx
index 06b8753f6999..26fdb78eb825 100644
--- a/io/source/TextInputStream/TextInputStream.cxx
+++ b/io/source/TextInputStream/TextInputStream.cxx
@@ -392,7 +392,7 @@ Reference< XInterface > TextInputStream_CreateInstance(
OUString TextInputStream_getImplementationName()
{
- return OUString ( IMPLEMENTATION_NAME );
+ return IMPLEMENTATION_NAME;
}
Sequence< OUString > TextInputStream_getSupportedServiceNames()
diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx
index ce911ce318bc..22fab1f01bd0 100644
--- a/io/source/TextOutputStream/TextOutputStream.cxx
+++ b/io/source/TextOutputStream/TextOutputStream.cxx
@@ -225,7 +225,7 @@ Reference< XInterface > TextOutputStream_CreateInstance(
OUString TextOutputStream_getImplementationName()
{
- return OUString( IMPLEMENTATION_NAME );
+ return IMPLEMENTATION_NAME;
}
diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx
index 00013a90bf31..0606c4f1f248 100644
--- a/io/source/acceptor/acceptor.cxx
+++ b/io/source/acceptor/acceptor.cxx
@@ -241,7 +241,7 @@ namespace io_acceptor
OUString acceptor_getImplementationName()
{
- return OUString( IMPLEMENTATION_NAME );
+ return IMPLEMENTATION_NAME;
}
Reference< XInterface > acceptor_CreateInstance( const Reference< XComponentContext > & xCtx)
diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx
index cee46004506d..1c9619c26352 100644
--- a/io/source/connector/connector.cxx
+++ b/io/source/connector/connector.cxx
@@ -164,7 +164,7 @@ namespace stoc_connector
OUString connector_getImplementationName()
{
- return OUString( IMPLEMENTATION_NAME );
+ return IMPLEMENTATION_NAME;
}
OUString OConnector::getImplementationName()
diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx
index e174bd1ec4ab..260280216c11 100644
--- a/io/source/stm/odata.cxx
+++ b/io/source/stm/odata.cxx
@@ -419,7 +419,7 @@ Reference< XInterface > ODataInputStream_CreateInstance(
OUString ODataInputStream_getImplementationName()
{
- return OUString("com.sun.star.comp.io.stm.DataInputStream");
+ return "com.sun.star.comp.io.stm.DataInputStream";
}
Sequence<OUString> ODataInputStream_getSupportedServiceNames()
@@ -737,7 +737,7 @@ Reference< XInterface > ODataOutputStream_CreateInstance(
OUString ODataOutputStream_getImplementationName()
{
- return OUString("com.sun.star.comp.io.stm.DataOutputStream");
+ return "com.sun.star.comp.io.stm.DataOutputStream";
}
Sequence<OUString> ODataOutputStream_getSupportedServiceNames()
@@ -985,7 +985,7 @@ Reference< XInterface > OObjectOutputStream_CreateInstance(
OUString OObjectOutputStream_getImplementationName()
{
- return OUString("com.sun.star.comp.io.stm.ObjectOutputStream");
+ return "com.sun.star.comp.io.stm.ObjectOutputStream";
}
Sequence<OUString> OObjectOutputStream_getSupportedServiceNames()
@@ -1267,7 +1267,7 @@ Reference< XInterface > OObjectInputStream_CreateInstance( const Reference < XCo
OUString OObjectInputStream_getImplementationName()
{
- return OUString("com.sun.star.comp.io.stm.ObjectInputStream");
+ return "com.sun.star.comp.io.stm.ObjectInputStream";
}
Sequence<OUString> OObjectInputStream_getSupportedServiceNames()
diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx
index cf2dcb99f02d..19191e4a957b 100644
--- a/io/source/stm/omark.cxx
+++ b/io/source/stm/omark.cxx
@@ -373,7 +373,7 @@ Reference< XInterface > OMarkableOutputStream_CreateInstance(
OUString OMarkableOutputStream_getImplementationName()
{
- return OUString("com.sun.star.comp.io.stm.MarkableOutputStream");
+ return "com.sun.star.comp.io.stm.MarkableOutputStream";
}
Sequence<OUString> OMarkableOutputStream_getSupportedServiceNames()
@@ -784,7 +784,7 @@ Reference < XInterface > OMarkableInputStream_CreateInstance(
OUString OMarkableInputStream_getImplementationName()
{
- return OUString("com.sun.star.comp.io.stm.MarkableInputStream");
+ return "com.sun.star.comp.io.stm.MarkableInputStream";
}
Sequence<OUString> OMarkableInputStream_getSupportedServiceNames()
diff --git a/io/source/stm/opipe.cxx b/io/source/stm/opipe.cxx
index 238c73292274..4815a69bc862 100644
--- a/io/source/stm/opipe.cxx
+++ b/io/source/stm/opipe.cxx
@@ -363,7 +363,7 @@ Reference < XInterface > OPipeImpl_CreateInstance(
OUString OPipeImpl_getImplementationName()
{
- return OUString( IMPLEMENTATION_NAME );
+ return IMPLEMENTATION_NAME;
}
Sequence<OUString> OPipeImpl_getSupportedServiceNames()
diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx
index 90edc35d16d7..99e77fa496d5 100644
--- a/io/source/stm/opump.cxx
+++ b/io/source/stm/opump.cxx
@@ -446,7 +446,7 @@ Reference< XInterface > OPumpImpl_CreateInstance(
OUString OPumpImpl_getImplementationName()
{
- return OUString("com.sun.star.comp.io.Pump");
+ return "com.sun.star.comp.io.Pump";
}
Sequence<OUString> OPumpImpl_getSupportedServiceNames()