summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-30 16:14:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-30 17:01:20 +0100
commit3da59050683632fb01d10e7a870a40688de09243 (patch)
treec78abd26711f9a3f6862a7255ae7e9032e7a39d7 /unotools
parent96295f0000107bca98f444413ce5879027b28e49 (diff)
small startup optimization
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/eventcfg.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index 1915488610cd..5008c70cdb92 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -187,8 +187,8 @@ void GlobalEventConfig_Impl::Commit()
ClearNodeSet( SETNODE_BINDINGS );
Sequence< beans::PropertyValue > seqValues( 1 );
OUString sNode;
- static const OUString sPrefix(SETNODE_BINDINGS + PATHDELIMITER + OUString::createFromAscii("BindingType['"));
- static const OUString sPostfix(OUString::createFromAscii("']") + PATHDELIMITER + PROPERTYNAME_BINDINGURL);
+ static const OUString sPrefix(SETNODE_BINDINGS + PATHDELIMITER + OUString(RTL_CONSTASCII_USTRINGPARAM("BindingType['")));
+ static const OUString sPostfix(OUString(RTL_CONSTASCII_USTRINGPARAM("']")) + PATHDELIMITER + PROPERTYNAME_BINDINGURL);
//step through the list of events
for(int i=0;it!=it_end;++it,++i)
{
@@ -290,9 +290,9 @@ Any SAL_CALL GlobalEventConfig_Impl::getByName( const OUString& aName ) throw (c
{
Any aRet;
Sequence< beans::PropertyValue > props(2);
- props[0].Name = OUString::createFromAscii("EventType");
- props[0].Value <<= OUString::createFromAscii("Script");
- props[1].Name = OUString::createFromAscii("Script");
+ props[0].Name = OUString(RTL_CONSTASCII_USTRINGPARAM("EventType"));
+ props[0].Value <<= OUString(RTL_CONSTASCII_USTRINGPARAM("Script"));
+ props[1].Name = OUString(RTL_CONSTASCII_USTRINGPARAM("Script"));
EventBindingHash::const_iterator it = m_eventBindingHash.find( aName );
if( it != m_eventBindingHash.end() )
{