summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-15 11:05:19 +0200
committerNoel Grandin <noel@peralex.com>2013-11-19 10:29:31 +0200
commit610b2b94b33b0fc2d79cd515f9e293ca1c2610e8 (patch)
tree6eab2639cb8104ca54daa3f7a2ebd83ef1566cf0 /stoc
parent2c35fff7eca3a143d28dc75e6a73fe1101d2af77 (diff)
remove unnecessary use of OUString constructor when assigning
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/javaloader/javaloader.cxx4
-rw-r--r--stoc/test/testregistry.cxx12
2 files changed, 8 insertions, 8 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx
index 15433cca778f..83887e917395 100644
--- a/stoc/source/javaloader/javaloader.cxx
+++ b/stoc/source/javaloader/javaloader.cxx
@@ -71,8 +71,8 @@ static Mutex & getInitMutex();
static Sequence< OUString > loader_getSupportedServiceNames()
{
Sequence< OUString > seqNames(2);
- seqNames.getArray()[0] = OUString( "com.sun.star.loader.Java");
- seqNames.getArray()[1] = OUString( "com.sun.star.loader.Java2");
+ seqNames.getArray()[0] = "com.sun.star.loader.Java";
+ seqNames.getArray()[1] = "com.sun.star.loader.Java2";
return seqNames;
}
diff --git a/stoc/test/testregistry.cxx b/stoc/test/testregistry.cxx
index a9a680b1531d..a3727215717e 100644
--- a/stoc/test/testregistry.cxx
+++ b/stoc/test/testregistry.cxx
@@ -277,9 +277,9 @@ void test_SimpleRegistry(
xKey = xRootKey->createKey(OUString( "ThirdKey" ));
OUString pAscii[3];
- pAscii[0] = OUString( "Hallo" );
- pAscii[1] = OUString( "jetzt komm" );
- pAscii[2] = OUString( "ich" );
+ pAscii[0] = "Hallo";
+ pAscii[1] = "jetzt komm";
+ pAscii[2] = "ich";
Sequence<OUString> seqAscii(pAscii, 3);
xKey->setAsciiListValue(seqAscii);
@@ -293,9 +293,9 @@ void test_SimpleRegistry(
xKey = xRootKey->createKey(OUString( "FourthKey" ));
OUString pUnicode[3];
- pUnicode[0] = OUString( "Hallo" );
- pUnicode[1] = OUString( "jetzt komm" );
- pUnicode[2] = OUString( "ich als unicode" );
+ pUnicode[0] = "Hallo";
+ pUnicode[1] = "jetzt komm";
+ pUnicode[2] = "ich als unicode";
Sequence<OUString> seqUnicode(pUnicode, 3);
xKey->setStringListValue(seqUnicode);