summaryrefslogtreecommitdiffstats
path: root/eventattacher
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-04 14:00:40 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 11:21:26 +0200
commite52779d2f8722c713f72aedbf475267440d729f0 (patch)
tree0f2f15b2a7645e0b75f8057c96c90e05e1a6e7df /eventattacher
parentremove unnecessary use of OUString constructor in BASIC module (diff)
downloadcore-e52779d2f8722c713f72aedbf475267440d729f0.tar.gz
core-e52779d2f8722c713f72aedbf475267440d729f0.zip
remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
Diffstat (limited to 'eventattacher')
-rw-r--r--eventattacher/source/eventattacher.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx
index 4830336fa3ea..6dc6b508816d 100644
--- a/eventattacher/source/eventattacher.cxx
+++ b/eventattacher/source/eventattacher.cxx
@@ -626,7 +626,7 @@ Reference<XEventListener> EventAttacherImpl::attachListenerForTarget(
nIndex++;
OUString aListenerName = (aListenerType[nIndex] == 'X') ? aListenerType.copy(nIndex+1) : aListenerType;
- OUString aAddListenerName = OUString("add") + aListenerName;
+ OUString aAddListenerName = "add" + aListenerName;
// Send Methods to the correct addListener-Method
Sequence< Reference< XIdlMethod > > aMethodSeq = xAccess->getMethods( MethodConcept::LISTENER );
@@ -818,7 +818,7 @@ void EventAttacherImpl::removeListener
if( aListenerName[nIndex] == 'X' )
// erase X from the interface name
aListenerName = aListenerName.copy( nIndex +1 );
- aRemoveListenerName = OUString( "remove" ) + aListenerName;
+ aRemoveListenerName = "remove" + aListenerName;
// Search methods for the correct removeListener method
Sequence< Reference< XIdlMethod > > aMethodSeq = xAccess->getMethods( MethodConcept::LISTENER );