diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-06-03 20:08:46 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-06-03 20:08:46 -0300 |
commit | 4c0d50eac4d89d2717d9e6787932a10abbb6e264 (patch) | |
tree | 1a4fab8ff96192b7f022a43c24ca5791aaa92774 /sfx2/source/bastyp | |
parent | 27cd9157ac0e824197aa40c67fe6a4bfab3b2e38 (diff) |
Targeted string rework (ii)
Further cleanup on top of 2f1a1c529694c1fec6d3b02930f8226c7b2bccd9
Change-Id: If348a0985ea92e4dafc450402053d43f77a0f58f
Diffstat (limited to 'sfx2/source/bastyp')
-rw-r--r-- | sfx2/source/bastyp/helper.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx index 5739aa6fc74b..50b9196950c2 100644 --- a/sfx2/source/bastyp/helper.cxx +++ b/sfx2/source/bastyp/helper.cxx @@ -96,9 +96,9 @@ uno::Sequence < OUString > SfxContentHelper::GetResultSet( const String& rURL ) uno::Reference< ucb::XDynamicResultSet > xDynResultSet; uno::Sequence< OUString > aProps(3); OUString* pProps = aProps.getArray(); - pProps[0] = OUString("Title"); - pProps[1] = OUString("ContentType"); - pProps[2] = OUString("IsFolder"); + pProps[0] = "Title"; + pProps[1] = "ContentType"; + pProps[2] = "IsFolder"; try { @@ -180,14 +180,14 @@ uno::Sequence< OUString > SfxContentHelper::GetHelpTreeViewContents( const Strin { uno::Reference< lang::XMultiServiceFactory > xFactory = ::comphelper::getProcessServiceFactory(); uno::Reference< task::XInteractionHandler > xInteractionHandler = uno::Reference< task::XInteractionHandler > ( - xFactory->createInstance( ::rtl::OUString( "com.sun.star.task.InteractionHandler" ) ), uno::UNO_QUERY ); + xFactory->createInstance( "com.sun.star.task.InteractionHandler" ), uno::UNO_QUERY ); ::ucbhelper::Content aCnt( rURL, new ::ucbhelper::CommandEnvironment( xInteractionHandler, uno::Reference< ucb::XProgressHandler >() ) ); uno::Reference< sdbc::XResultSet > xResultSet; uno::Sequence< OUString > aProps(2); OUString* pProps = aProps.getArray(); - pProps[0] = OUString("Title"); - pProps[1] = OUString("IsFolder"); + pProps[0] = "Title"; + pProps[1] = "IsFolder"; try { @@ -264,7 +264,7 @@ String SfxContentHelper::GetActiveHelpString( const String& rURL ) { uno::Reference< lang::XMultiServiceFactory > xFactory = ::comphelper::getProcessServiceFactory(); uno::Reference< task::XInteractionHandler > xInteractionHandler = uno::Reference< task::XInteractionHandler > ( - xFactory->createInstance( ::rtl::OUString( "com.sun.star.task.InteractionHandler" ) ), uno::UNO_QUERY ); + xFactory->createInstance( "com.sun.star.task.InteractionHandler" ), uno::UNO_QUERY ); ::ucbhelper::Content aCnt( rURL, new ::ucbhelper::CommandEnvironment( xInteractionHandler, uno::Reference< ucb::XProgressHandler >() ) ); // open the "active help" stream uno::Reference< io::XInputStream > xStream = aCnt.openStream(); @@ -298,7 +298,7 @@ sal_Bool SfxContentHelper::IsHelpErrorDocument( const String& rURL ) { ::ucbhelper::Content aCnt( INetURLObject( rURL ).GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment > () ); - if ( !( aCnt.getPropertyValue( OUString("IsErrorDocument") ) >>= bRet ) ) + if ( !( aCnt.getPropertyValue( "IsErrorDocument" ) >>= bRet ) ) { SAL_WARN( "sfx2.bastyp", "Property 'IsErrorDocument' is missing" ); } @@ -321,7 +321,7 @@ sal_uIntPtr SfxContentHelper::GetSize( const String& rContent ) try { ::ucbhelper::Content aCnt( aObj.GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment > () ); - aCnt.getPropertyValue( OUString("Size") ) >>= nTemp; + aCnt.getPropertyValue( "Size" ) >>= nTemp; } catch( const ucb::CommandAbortedException& ) { |