Kaydet (Commit) bb80b9e6 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

uui: Use appropriate OUString functions on string constants

Change-Id: I846ee3bf07a5c99da11f0041de1e778584bfae09
üst 3607b14a
...@@ -216,8 +216,7 @@ handleFilterOptionsRequest_( ...@@ -216,8 +216,7 @@ handleFilterOptionsRequest_(
sal_Int32 nPropCount = rRequest.rProperties.getLength(); sal_Int32 nPropCount = rRequest.rProperties.getLength();
for( sal_Int32 ind = 0; ind < nPropCount; ++ind ) for( sal_Int32 ind = 0; ind < nPropCount; ++ind )
{ {
if( rRequest.rProperties[ind].Name.equals( if( rRequest.rProperties[ind].Name == "FilterName" )
OUString("FilterName")) )
{ {
rRequest.rProperties[ind].Value >>= aFilterName; rRequest.rProperties[ind].Value >>= aFilterName;
break; break;
...@@ -231,8 +230,7 @@ handleFilterOptionsRequest_( ...@@ -231,8 +230,7 @@ handleFilterOptionsRequest_(
for( sal_Int32 nProperty=0; for( sal_Int32 nProperty=0;
nProperty < nPropertyCount; nProperty < nPropertyCount;
++nProperty ) ++nProperty )
if( aProps[nProperty].Name.equals( if( aProps[nProperty].Name == "UIComponent" )
OUString("UIComponent")) )
{ {
OUString aServiceName; OUString aServiceName;
aProps[nProperty].Value >>= aServiceName; aProps[nProperty].Value >>= aServiceName;
......
...@@ -437,7 +437,7 @@ UUIInteractionHelper::handleRequest_impl( ...@@ -437,7 +437,7 @@ UUIInteractionHelper::handleRequest_impl(
for ( sal_Int32 index=0; index< sModules.getLength(); ++index ) for ( sal_Int32 index=0; index< sModules.getLength(); ++index )
{ {
if ( index ) if ( index )
aName = aName + "," + sModules[index]; aName += "," + sModules[index];
else else
aName = sModules[index]; // 1st name aName = sModules[index]; // 1st name
} }
...@@ -1298,7 +1298,7 @@ UUIInteractionHelper::handleBrokenPackageRequest( ...@@ -1298,7 +1298,7 @@ UUIInteractionHelper::handleBrokenPackageRequest(
OUString title( OUString title(
utl::ConfigManager::getProductName() + utl::ConfigManager::getProductName() +
OUString( " " ) + " " +
utl::ConfigManager::getProductVersion() ); utl::ConfigManager::getProductVersion() );
switch ( switch (
......
...@@ -334,8 +334,8 @@ uno::Sequence< OUString > ...@@ -334,8 +334,8 @@ uno::Sequence< OUString >
PasswordContainerInteractionHandler::getSupportedServiceNames_Static() PasswordContainerInteractionHandler::getSupportedServiceNames_Static()
{ {
uno::Sequence< OUString > aSNS( 1 ); uno::Sequence< OUString > aSNS( 1 );
aSNS.getArray()[ 0 ] = OUString( aSNS.getArray()[ 0 ] =
"com.sun.star.task.PasswordContainerInteractionHandler" ); "com.sun.star.task.PasswordContainerInteractionHandler";
return aSNS; return aSNS;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment