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

unotools: Use appropriate OUString functions on string constants

Change-Id: I14d3a3187b8528e3ff9743245b869773c2eb5e98
üst 55cd108d
...@@ -240,7 +240,7 @@ void SAL_CALL GlobalEventConfig_Impl::replaceByName( const OUString& aName, cons ...@@ -240,7 +240,7 @@ void SAL_CALL GlobalEventConfig_Impl::replaceByName( const OUString& aName, cons
sal_Int32 nPropCount = props.getLength(); sal_Int32 nPropCount = props.getLength();
for( sal_Int32 index = 0; index < nPropCount; ++index ) for( sal_Int32 index = 0; index < nPropCount; ++index )
{ {
if ( props[ index ].Name.equalsAscii( "Script" ) ) if ( props[ index ].Name == "Script" )
props[ index ].Value >>= macroURL; props[ index ].Value >>= macroURL;
} }
m_eventBindingHash[ aName ] = macroURL; m_eventBindingHash[ aName ] = macroURL;
......
...@@ -771,7 +771,7 @@ SvtLoadOptions_Impl::SvtLoadOptions_Impl() ...@@ -771,7 +771,7 @@ SvtLoadOptions_Impl::SvtLoadOptions_Impl()
, bLoadUserDefinedSettings( false ) , bLoadUserDefinedSettings( false )
{ {
Sequence< OUString > aNames(1); Sequence< OUString > aNames(1);
aNames[0] = OUString::createFromAscii(cUserDefinedSettings); aNames[0] = cUserDefinedSettings;
Sequence< Any > aValues = GetProperties( aNames ); Sequence< Any > aValues = GetProperties( aNames );
EnableNotification( aNames ); EnableNotification( aNames );
const Any* pValues = aValues.getConstArray(); const Any* pValues = aValues.getConstArray();
...@@ -787,7 +787,7 @@ SvtLoadOptions_Impl::~SvtLoadOptions_Impl() ...@@ -787,7 +787,7 @@ SvtLoadOptions_Impl::~SvtLoadOptions_Impl()
void SvtLoadOptions_Impl::Commit() void SvtLoadOptions_Impl::Commit()
{ {
Sequence< OUString > aNames(1); Sequence< OUString > aNames(1);
aNames[0] = OUString::createFromAscii(cUserDefinedSettings); aNames[0] = cUserDefinedSettings;
Sequence< Any > aValues( 1 ); Sequence< Any > aValues( 1 );
aValues[0].setValue(&bLoadUserDefinedSettings, ::getBooleanCppuType()); aValues[0].setValue(&bLoadUserDefinedSettings, ::getBooleanCppuType());
PutProperties( aNames, aValues ); PutProperties( aNames, aValues );
......
...@@ -58,7 +58,7 @@ OUString getParentName( const OUString& aFileName ) ...@@ -58,7 +58,7 @@ OUString getParentName( const OUString& aFileName )
if( aParent.endsWith(":") && aParent.getLength() == 6 ) if( aParent.endsWith(":") && aParent.getLength() == 6 )
aParent += "/"; aParent += "/";
if( aParent.equalsAscii( "file://" ) ) if( aParent.equalsIgnoreAsciiCase( "file://" ) )
aParent = "file:///"; aParent = "file:///";
return aParent; return aParent;
......
...@@ -875,8 +875,8 @@ static bool UCBOpenContentSync( ...@@ -875,8 +875,8 @@ static bool UCBOpenContentSync(
return _UCBOpenContentSync( return _UCBOpenContentSync(
xLockBytes,xContent,rArg,xSink,xInteract,xProgress,xHandler); xLockBytes,xContent,rArg,xSink,xInteract,xProgress,xHandler);
if ( !aScheme.equalsAscii( "http" ) && if ( !aScheme.equalsIgnoreAsciiCase( "http" ) &&
!aScheme.equalsAscii( "https" ) ) !aScheme.equalsIgnoreAsciiCase( "https" ) )
xLockBytes->SetStreamValid_Impl(); xLockBytes->SetStreamValid_Impl();
Reference< XPropertiesChangeListener > xListener; Reference< XPropertiesChangeListener > xListener;
...@@ -1112,7 +1112,7 @@ static bool _UCBOpenContentSync( ...@@ -1112,7 +1112,7 @@ static bool _UCBOpenContentSync(
// http protocol must be handled in a special way: during the opening process the input stream may change // http protocol must be handled in a special way: during the opening process the input stream may change
// only the last inputstream after notifying the document headers is valid // only the last inputstream after notifying the document headers is valid
if ( !aScheme.equalsAscii("http") ) if ( !aScheme.equalsIgnoreAsciiCase("http") )
xLockBytes->SetStreamValid_Impl(); xLockBytes->SetStreamValid_Impl();
Reference< XPropertiesChangeListener > xListener = new UcbPropertiesChangeListener_Impl( xLockBytes ); Reference< XPropertiesChangeListener > xListener = new UcbPropertiesChangeListener_Impl( xLockBytes );
......
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