diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-04 14:00:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 11:21:26 +0200 |
commit | e52779d2f8722c713f72aedbf475267440d729f0 (patch) | |
tree | 0f2f15b2a7645e0b75f8057c96c90e05e1a6e7df /eventattacher | |
parent | e9c4ee996d5a6bf895072613ac4e488346ee5b05 (diff) |
remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
Diffstat (limited to 'eventattacher')
-rw-r--r-- | eventattacher/source/eventattacher.cxx | 4 |
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 ); |