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

xmlscript: Use appropriate OUString functions on string constants

Change-Id: I1fafba17c590d4485f2138e2dda877344c573df1
üst 8d487ceb
...@@ -910,7 +910,7 @@ void ElementDescriptor::readDataAwareAttr( OUString const & rAttrName ) ...@@ -910,7 +910,7 @@ void ElementDescriptor::readDataAwareAttr( OUString const & rAttrName )
Reference< form::binding::XBindableValue > xBinding( _xProps, UNO_QUERY ); Reference< form::binding::XBindableValue > xBinding( _xProps, UNO_QUERY );
if ( xFac.is() && xBinding.is() && rAttrName.equals( XMLNS_DIALOGS_PREFIX ":linked-cell" ) ) if ( xFac.is() && xBinding.is() && rAttrName == XMLNS_DIALOGS_PREFIX ":linked-cell" )
{ {
try try
{ {
...@@ -935,7 +935,7 @@ void ElementDescriptor::readDataAwareAttr( OUString const & rAttrName ) ...@@ -935,7 +935,7 @@ void ElementDescriptor::readDataAwareAttr( OUString const & rAttrName )
} }
} }
Reference< form::binding::XListEntrySink > xEntrySink( _xProps, UNO_QUERY ); Reference< form::binding::XListEntrySink > xEntrySink( _xProps, UNO_QUERY );
if ( xEntrySink.is() && rAttrName.equals( XMLNS_DIALOGS_PREFIX ":source-cell-range" ) ) if ( xEntrySink.is() && rAttrName == XMLNS_DIALOGS_PREFIX ":source-cell-range" )
{ {
Reference< beans::XPropertySet > xListSource( xEntrySink->getListEntrySource(), UNO_QUERY ); Reference< beans::XPropertySet > xListSource( xEntrySink->getListEntrySource(), UNO_QUERY );
if ( xListSource.is() ) if ( xListSource.is() )
......
...@@ -912,9 +912,9 @@ bool ImportContext::importDataAwareProperty( ...@@ -912,9 +912,9 @@ bool ImportContext::importDataAwareProperty(
{ {
OUString sLinkedCell; OUString sLinkedCell;
OUString sCellRange; OUString sCellRange;
if ( rPropName.equals( "linked-cell" ) ) if ( rPropName == "linked-cell" )
sLinkedCell = xAttributes->getValueByUidName( _pImport->XMLNS_DIALOGS_UID, rPropName ); sLinkedCell = xAttributes->getValueByUidName( _pImport->XMLNS_DIALOGS_UID, rPropName );
if ( rPropName.equals( "source-cell-range" ) ) if ( rPropName == "source-cell-range" )
sCellRange = xAttributes->getValueByUidName( _pImport->XMLNS_DIALOGS_UID, rPropName ); sCellRange = xAttributes->getValueByUidName( _pImport->XMLNS_DIALOGS_UID, rPropName );
bool bRes = false; bool bRes = false;
Reference< lang::XMultiServiceFactory > xFac( _pImport->getDocOwner(), UNO_QUERY ); Reference< lang::XMultiServiceFactory > xFac( _pImport->getDocOwner(), UNO_QUERY );
......
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