summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:41:36 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:39 +0100
commiteabf036cfe4b776b44675040aaf48c23f2ff5777 (patch)
tree9906d006aba37db6e59f51887b5dab048eb4cbaa
parent8d487ceba1995b5831755bb5b37a82afc2125c0f (diff)
xmlscript: Use appropriate OUString functions on string constants
Change-Id: I1fafba17c590d4485f2138e2dda877344c573df1
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_export.cxx4
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_import.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index 1c8012e8925d..59148611a702 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -910,7 +910,7 @@ void ElementDescriptor::readDataAwareAttr( OUString const & rAttrName )
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
{
@@ -935,7 +935,7 @@ void ElementDescriptor::readDataAwareAttr( OUString const & rAttrName )
}
}
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 );
if ( xListSource.is() )
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
index bf504e7ae099..9b1ccf46809c 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
@@ -912,9 +912,9 @@ bool ImportContext::importDataAwareProperty(
{
OUString sLinkedCell;
OUString sCellRange;
- if ( rPropName.equals( "linked-cell" ) )
+ if ( rPropName == "linked-cell" )
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 );
bool bRes = false;
Reference< lang::XMultiServiceFactory > xFac( _pImport->getDocOwner(), UNO_QUERY );