diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-27 11:38:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-27 16:05:02 +0100 |
commit | 5bd92787713263456680d3bc984ae4fed80e1d3a (patch) | |
tree | 5e5d57b0084fd89e30eb2931122ac25502f16de8 /sw/source/core/fields | |
parent | 1af4026d3fbb205044059d4024527c217bd24d82 (diff) |
micro optimizations
Diffstat (limited to 'sw/source/core/fields')
-rw-r--r-- | sw/source/core/fields/docufld.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/fields/macrofld.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx index 7be32ec27294..c67cdf68a111 100644 --- a/sw/source/core/fields/docufld.cxx +++ b/sw/source/core/fields/docufld.cxx @@ -994,7 +994,7 @@ String SwDocInfoFieldType::Expand( sal_uInt16 nSub, sal_uInt32 nFormat, aAny = xSet->getPropertyValue( rName ); uno::Reference < script::XTypeConverter > xConverter( comphelper::getProcessServiceFactory() - ->createInstance(::rtl::OUString::createFromAscii("com.sun.star.script.Converter")), uno::UNO_QUERY ); + ->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.script.Converter"))), uno::UNO_QUERY ); uno::Any aNew; aNew = xConverter->convertToSimpleType( aAny, uno::TypeClass_STRING ); aNew >>= sVal; @@ -1150,7 +1150,7 @@ String SwDocInfoField::Expand() const // if the field is "fixed" we don't update it from the property ::rtl::OUString sVal; uno::Reference < script::XTypeConverter > xConverter( comphelper::getProcessServiceFactory() - ->createInstance(::rtl::OUString::createFromAscii("com.sun.star.script.Converter")), uno::UNO_QUERY ); + ->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.script.Converter"))), uno::UNO_QUERY ); util::Date aDate; util::DateTime aDateTime; util::Duration aDuration; diff --git a/sw/source/core/fields/macrofld.cxx b/sw/source/core/fields/macrofld.cxx index 09fd29f37fa3..5aef3045b2f7 100644 --- a/sw/source/core/fields/macrofld.cxx +++ b/sw/source/core/fields/macrofld.cxx @@ -248,8 +248,8 @@ BOOL SwMacroField::isScriptURL( const String& str ) uno::Reference< uri::XUriReferenceFactory > xFactory( xSMgr->createInstance( - OUString::createFromAscii( - "com.sun.star.uri.UriReferenceFactory" ) ), uno::UNO_QUERY ); + OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.uri.UriReferenceFactory")) ), uno::UNO_QUERY ); if ( xFactory.is() ) { |