summaryrefslogtreecommitdiff
path: root/starmath/source/mathmlimport.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-11 11:37:33 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-11 18:43:07 -0200
commit806dce17d6631738c7388d8d68d8b5ac2e4c11a8 (patch)
tree0759954593c2fa8a85b94e5d3a4b4f40e913f091 /starmath/source/mathmlimport.cxx
parente33702442a22a72f96a093fbfdf8bfac217f416f (diff)
Fix for fdo43460 Part XXXIV getLength() to isEmpty()
Part XXXIV Modules shell, slideshow, sot, starmath
Diffstat (limited to 'starmath/source/mathmlimport.cxx')
-rw-r--r--starmath/source/mathmlimport.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index de00ebb9accd..50a412ce98d5 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -202,7 +202,7 @@ sal_uLong SmXMLImportWrapper::Import(SfxMedium &rMedium)
aName = pDocHierarchItem->GetValue();
}
- if ( aName.getLength() )
+ if ( !aName.isEmpty() )
{
sPropName = OUString(RTL_CONSTASCII_USTRINGPARAM("StreamRelPath"));
xInfoSet->setPropertyValue( sPropName, makeAny( aName ) );
@@ -649,7 +649,7 @@ void SmXMLImportContext::Characters(const OUString &rChars)
*/
//collapsing not done yet!
const OUString &rChars2 = rChars.trim();
- if (rChars2.getLength())
+ if (!rChars2.isEmpty())
TCharacters(rChars2/*.collapse()*/);
}
@@ -733,7 +733,7 @@ void SmXMLContext_Helper::RetrieveAttrs(const uno::Reference<
if ((nOldIsBold!=nIsBold) || (nOldIsItalic!=nIsItalic) ||
(nOldFontSize!=nFontSize) || (sOldFontFamily!=sFontFamily)
- || sColor.getLength())
+ || !sColor.isEmpty())
bFontNodeNeeded=sal_True;
else
bFontNodeNeeded=sal_False;
@@ -793,7 +793,7 @@ void SmXMLContext_Helper::ApplyAttrs()
pFontNode->SetSubNodes(0,lcl_popOrZero(rNodeStack));
rNodeStack.push(pFontNode);
}
- if (sFontFamily.getLength())
+ if (!sFontFamily.isEmpty())
{
if (sFontFamily.equalsIgnoreAsciiCase(GetXMLToken(XML_FIXED)))
aToken.eType = TFIXED;
@@ -812,7 +812,7 @@ void SmXMLContext_Helper::ApplyAttrs()
pFontNode->SetSubNodes(0,lcl_popOrZero(rNodeStack));
rNodeStack.push(pFontNode);
}
- if (sColor.getLength())
+ if (!sColor.isEmpty())
{
//Again we can only handle a small set of colours in
//StarMath for now.
@@ -1337,8 +1337,8 @@ void SmXMLIdentifierContext_Impl::EndElement()
}
if ((-1!=aStyleHelper.nIsBold) || (0.0!=aStyleHelper.nFontSize) ||
- (aStyleHelper.sFontFamily.getLength()) ||
- aStyleHelper.sColor.getLength())
+ (!aStyleHelper.sFontFamily.isEmpty()) ||
+ !aStyleHelper.sColor.isEmpty())
aStyleHelper.bFontNodeNeeded=sal_True;
else
aStyleHelper.bFontNodeNeeded=sal_False;