diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-11 11:37:33 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-11 18:43:07 -0200 |
commit | 806dce17d6631738c7388d8d68d8b5ac2e4c11a8 (patch) | |
tree | 0759954593c2fa8a85b94e5d3a4b4f40e913f091 /starmath/source/cfgitem.cxx | |
parent | e33702442a22a72f96a093fbfdf8bfac217f416f (diff) |
Fix for fdo43460 Part XXXIV getLength() to isEmpty()
Part XXXIV
Modules
shell, slideshow, sot, starmath
Diffstat (limited to 'starmath/source/cfgitem.cxx')
-rw-r--r-- | starmath/source/cfgitem.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 33c83c1c4717..74247f907bbb 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -1027,7 +1027,7 @@ void SmMathConfig::LoadFormat() bool bUseDefaultFont = true; if (pVal->hasValue() && (*pVal >>= aTmpStr)) { - bUseDefaultFont = 0 == aTmpStr.getLength(); + bUseDefaultFont = aTmpStr.isEmpty(); if (bUseDefaultFont) { aFnt = pFormat->GetFont( i ); @@ -1092,7 +1092,7 @@ void SmMathConfig::SaveFormat() { SmFontFormat aFntFmt( pFormat->GetFont( i ) ); aFntFmtId = GetFontFormatList().GetFontFormatId( aFntFmt, true ); - OSL_ENSURE( aFntFmtId.getLength(), "FontFormatId not found" ); + OSL_ENSURE( !aFntFmtId.isEmpty(), "FontFormatId not found" ); } *pValue++ <<= aFntFmtId; |