diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-04 11:55:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 11:21:23 +0200 |
commit | 22435a0777d6048757855f7f30b04fb8e5523fb2 (patch) | |
tree | 2a8e66dbfca50cfee05739cf799f94b00774340d /extensions/source/propctrlr/eventhandler.cxx | |
parent | 957f8e02c29bc4df2f37f2a933957490cdf831f6 (diff) |
remove unnecessary use of OUString constructor in EXTENSIONS module
Change-Id: Idf73eb831f52d4d74e6fbb6ea27f59ebbfd13a8c
Diffstat (limited to 'extensions/source/propctrlr/eventhandler.cxx')
-rw-r--r-- | extensions/source/propctrlr/eventhandler.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx index 9388665d518c..8d826f8d384d 100644 --- a/extensions/source/propctrlr/eventhandler.cxx +++ b/extensions/source/propctrlr/eventhandler.cxx @@ -283,7 +283,7 @@ namespace pcr aScriptEvent.ScriptCode = aNewStyleSpec.makeStringAndClear(); // also, this new-style spec requires the script code to be "Script" instead of "StarBasic" - aScriptEvent.ScriptType = OUString( "Script" ); + aScriptEvent.ScriptType = "Script"; } return aScriptEvent; } @@ -437,9 +437,9 @@ namespace pcr Any aRet; Sequence< PropertyValue > aScriptDescriptor( 2 ); - aScriptDescriptor[0].Name = OUString("EventType"); + aScriptDescriptor[0].Name = "EventType"; aScriptDescriptor[0].Value <<= aDescriptor.ScriptType; - aScriptDescriptor[1].Name = OUString("Script"); + aScriptDescriptor[1].Name = "Script"; aScriptDescriptor[1].Value <<= aDescriptor.ScriptCode; return makeAny( aScriptDescriptor ); @@ -539,7 +539,7 @@ namespace pcr Sequence< OUString > SAL_CALL EventHandler::getSupportedServiceNames_static( ) throw (RuntimeException) { Sequence< OUString > aSupported( 1 ); - aSupported[0] = OUString( "com.sun.star.form.inspection.EventHandler" ); + aSupported[0] = "com.sun.star.form.inspection.EventHandler"; return aSupported; } @@ -871,7 +871,7 @@ namespace pcr aDescriptor.HelpURL = HelpIdUrl::getHelpURL( rEvent.sHelpId ); aDescriptor.PrimaryButtonId = OStringToOUString(rEvent.sUniqueBrowseId, RTL_TEXTENCODING_UTF8); aDescriptor.HasPrimaryButton = sal_True; - aDescriptor.Category = OUString( "Events" ); + aDescriptor.Category = "Events"; return aDescriptor; } |