diff options
author | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-05 08:24:57 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-11-05 08:24:57 +0100 |
commit | b99dce8d43bbf394063224074c2f1a645f49d518 (patch) | |
tree | 3eb832f1608c1c776dea75c00b3b18e7ebcc5700 /uui/source/iahndl-filter.cxx | |
parent | f69d9079edd846c0916fd087a9094b6e89f2766f (diff) |
Easy Hacks : RTL_CONSTASCII_USTRINGPARAM
Diffstat (limited to 'uui/source/iahndl-filter.cxx')
-rw-r--r-- | uui/source/iahndl-filter.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/uui/source/iahndl-filter.cxx b/uui/source/iahndl-filter.cxx index 2c043443bed6..1f8e5bd15ccf 100644 --- a/uui/source/iahndl-filter.cxx +++ b/uui/source/iahndl-filter.cxx @@ -116,8 +116,8 @@ handleNoSuchFilterRequest_( try { xFilterContainer.set( xServiceFactory->createInstance( - ::rtl::OUString::createFromAscii( - "com.sun.star.document.FilterFactory") ), + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.document.FilterFactory")) ), uno::UNO_QUERY ); } catch ( uno::Exception const & ) @@ -147,8 +147,8 @@ handleNoSuchFilterRequest_( // out by using DocumentService property later! uno::Reference< container::XEnumeration > xFilters = xFilterContainer->createSubSetEnumerationByQuery( - ::rtl::OUString::createFromAscii( - "_query_all:sort_prop=uiname:iflags=1:eflags=143360")); + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "_query_all:sort_prop=uiname:iflags=1:eflags=143360"))); while (xFilters->hasMoreElements()) { try @@ -157,9 +157,9 @@ handleNoSuchFilterRequest_( uui::FilterNamePair aPair; aPair.sInternal = lProps.getUnpackedValueOrDefault( - rtl::OUString::createFromAscii("Name"), ::rtl::OUString()); + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Name")), ::rtl::OUString()); aPair.sUI = lProps.getUnpackedValueOrDefault( - rtl::OUString::createFromAscii("UIName"), ::rtl::OUString()); + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UIName")), ::rtl::OUString()); if ( (!aPair.sInternal.Len()) || (!aPair.sUI.Len() ) ) { continue; @@ -224,8 +224,8 @@ handleAmbigousFilterRequest_( try { xFilterContainer.set( xServiceFactory->createInstance( - ::rtl::OUString::createFromAscii( - "com.sun.star.document.FilterFactory") ), + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.document.FilterFactory")) ), uno::UNO_QUERY ); } catch ( uno::Exception & ) @@ -325,8 +325,8 @@ handleFilterOptionsRequest_( try { xFilterCFG.set( xServiceFactory->createInstance( - ::rtl::OUString::createFromAscii( - "com.sun.star.document.FilterFactory" ) ), + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.document.FilterFactory" )) ), uno::UNO_QUERY ); } catch ( uno::Exception const & ) @@ -343,7 +343,7 @@ handleFilterOptionsRequest_( { rtl::OUString tmp = rRequest.rProperties[ind].Name; if( rRequest.rProperties[ind].Name.equals( - ::rtl::OUString::createFromAscii("FilterName")) ) + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FilterName"))) ) { rRequest.rProperties[ind].Value >>= aFilterName; break; @@ -358,7 +358,7 @@ handleFilterOptionsRequest_( nProperty < nPropertyCount; ++nProperty ) if( aProps[nProperty].Name.equals( - ::rtl::OUString::createFromAscii("UIComponent")) ) + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UIComponent"))) ) { ::rtl::OUString aServiceName; aProps[nProperty].Value >>= aServiceName; |