summaryrefslogtreecommitdiff
path: root/oox/source/xls/sheetdatacontext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/xls/sheetdatacontext.cxx')
-rw-r--r--oox/source/xls/sheetdatacontext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/xls/sheetdatacontext.cxx b/oox/source/xls/sheetdatacontext.cxx
index dfb9db03ed0e..b6415f363dbc 100644
--- a/oox/source/xls/sheetdatacontext.cxx
+++ b/oox/source/xls/sheetdatacontext.cxx
@@ -217,7 +217,7 @@ void SheetDataContext::onEndElement()
if( !mbHasFormula )
{
// no formula created: try to set the cell value
- if( maCellValue.getLength() > 0 ) switch( maCellData.mnCellType )
+ if( !maCellValue.isEmpty() ) switch( maCellData.mnCellType )
{
case XML_n:
mrSheetData.setValueCell( maCellData, maCellValue.toDouble() );
@@ -247,7 +247,7 @@ void SheetDataContext::onEndElement()
mrSheetData.setBlankCell( maCellData );
}
}
- else if( maCellValue.getLength() > 0 ) switch( maCellData.mnCellType )
+ else if( !maCellValue.isEmpty() ) switch( maCellData.mnCellType )
{
case XML_n:
/* Set the pre-loaded value */