summaryrefslogtreecommitdiff
path: root/forms/source/richtext
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 /forms/source/richtext
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 'forms/source/richtext')
-rw-r--r--forms/source/richtext/clipboarddispatcher.cxx6
-rw-r--r--forms/source/richtext/richtextcontrol.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/richtext/clipboarddispatcher.cxx b/forms/source/richtext/clipboarddispatcher.cxx
index 7f299b855ca1..61881550647f 100644
--- a/forms/source/richtext/clipboarddispatcher.cxx
+++ b/forms/source/richtext/clipboarddispatcher.cxx
@@ -44,13 +44,13 @@ namespace frm
switch ( _eFunc )
{
case OClipboardDispatcher::eCut:
- aURL.Complete = OUString( ".uno:Cut" );
+ aURL.Complete = ".uno:Cut";
break;
case OClipboardDispatcher::eCopy:
- aURL.Complete = OUString( ".uno:Copy" );
+ aURL.Complete = ".uno:Copy";
break;
case OClipboardDispatcher::ePaste:
- aURL.Complete = OUString( ".uno:Paste" );
+ aURL.Complete = ".uno:Paste";
break;
}
return aURL;
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx
index 942253209681..468676200413 100644
--- a/forms/source/richtext/richtextcontrol.cxx
+++ b/forms/source/richtext/richtextcontrol.cxx
@@ -273,8 +273,8 @@ namespace frm
Sequence< OUString > SAL_CALL ORichTextControl::getSupportedServiceNames_Static()
{
Sequence< OUString > aServices( 3 );
- aServices[ 0 ] = OUString( "com.sun.star.awt.UnoControl" );
- aServices[ 1 ] = OUString( "com.sun.star.awt.UnoControlEdit" );
+ aServices[ 0 ] = "com.sun.star.awt.UnoControl";
+ aServices[ 1 ] = "com.sun.star.awt.UnoControlEdit";
aServices[ 2 ] = FRM_SUN_CONTROL_RICHTEXTCONTROL;
return aServices;
}