diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-06 14:22:10 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-07 07:37:38 -0200 |
commit | 49e11ffbe1cc04f2855b18acd501954d80901efa (patch) | |
tree | 20bfbbab637d13ea81e8c467b59189701fedf1e4 /sc/source/filter/xml/xmlstyli.cxx | |
parent | catch exception by constant reference (diff) | |
download | core-49e11ffbe1cc04f2855b18acd501954d80901efa.tar.gz core-49e11ffbe1cc04f2855b18acd501954d80901efa.zip |
Fix for fdo43460 Part XXX getLength() to isEmpty()
Part XXX
Modules
sc
Diffstat (limited to 'sc/source/filter/xml/xmlstyli.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlstyli.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/filter/xml/xmlstyli.cxx b/sc/source/filter/xml/xmlstyli.cxx index b22bbf4fe895..7691c4b13010 100644 --- a/sc/source/filter/xml/xmlstyli.cxx +++ b/sc/source/filter/xml/xmlstyli.cxx @@ -399,13 +399,13 @@ void XMLTableStyleContext::GetConditionalFormat(uno::Any& aAny, const rtl::OUString& sTempCondition, const rtl::OUString& sApplyStyle, const rtl::OUString& sBaseCell) const { - if (sTempCondition.getLength() && sApplyStyle.getLength()) + if (!sTempCondition.isEmpty() && !sApplyStyle.isEmpty()) { uno::Reference<sheet::XSheetConditionalEntries> xConditionalEntries(aAny, uno::UNO_QUERY); if (xConditionalEntries.is()) { uno::Sequence<beans::PropertyValue> aProps; - if (sBaseCell.getLength()) + if (!sBaseCell.isEmpty()) SetBaseCellAddress(aProps, sBaseCell); SetStyle(aProps, sApplyStyle); @@ -540,7 +540,7 @@ void XMLTableStyleContext::FillPropertySet( } else if (GetFamily() == XML_STYLE_FAMILY_TABLE_TABLE) { - if (sPageStyle.getLength()) + if (!sPageStyle.isEmpty()) AddProperty(CTF_SC_MASTERPAGENAME, uno::makeAny(GetImport().GetStyleDisplayName( XML_STYLE_FAMILY_MASTER_PAGE, sPageStyle ))); } } @@ -601,7 +601,7 @@ XMLPropertyState* XMLTableStyleContext::FindProperty(const sal_Int16 nContextID) sal_Int32 XMLTableStyleContext::GetNumberFormat() { - if (nNumberFormat < 0 && sDataStyleName.getLength()) + if (nNumberFormat < 0 && !sDataStyleName.isEmpty()) { const SvXMLNumFormatContext* pStyle = static_cast<const SvXMLNumFormatContext*>( pStyles->FindStyleChildContext(XML_STYLE_FAMILY_DATA_STYLE, sDataStyleName, sal_True)); @@ -808,7 +808,7 @@ uno::Reference < XNameContainer > } break; } - if( !xStyles.is() && sName.getLength() && GetScImport().GetModel().is() ) + if( !xStyles.is() && !sName.isEmpty() && GetScImport().GetModel().is() ) { uno::Reference< XStyleFamiliesSupplier > xFamiliesSupp( GetScImport().GetModel(), UNO_QUERY ); @@ -851,7 +851,7 @@ uno::Reference < XNameContainer > OUString XMLTableStylesContext::GetServiceName( sal_uInt16 nFamily ) const { rtl::OUString sServiceName(SvXMLStylesContext::GetServiceName(nFamily)); - if (!sServiceName.getLength()) + if (sServiceName.isEmpty()) { switch( nFamily ) { |