From 4dab3a66173916ea7018abad84530aa820d4eb5e Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 7 Feb 2013 22:57:00 -0500 Subject: No need to check for empty value; it's checked when a value is assigned. Change-Id: I7d96910a6d8216aa17858b0cb05e161080c8dccc --- sc/source/filter/xml/xmlcelli.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index d1df64f579b9..2272e988862d 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -690,7 +690,7 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos, { ScFormulaCell* pFCell = static_cast(pCell); OUString aCellString; - if (maStringValue && !maStringValue->isEmpty()) + if (maStringValue) aCellString = *maStringValue; else if (!maParagraphs.empty()) aCellString = maParagraphs.back(); @@ -725,7 +725,7 @@ void ScXMLTableRowCellContext::PutTextCell( const ScAddress& rCurrentPos, { ScBaseCell* pNewCell = NULL; ScDocument* pDoc = rXMLImport.GetDocument(); - if (maStringValue && !maStringValue->isEmpty()) + if (maStringValue) pNewCell = ScBaseCell::CreateTextCell( *maStringValue, pDoc ); else if (!maParagraphs.empty()) pNewCell = ScBaseCell::CreateTextCell(maParagraphs.back(), pDoc); @@ -935,7 +935,7 @@ void ScXMLTableRowCellContext::AddNonFormulaCell( const ScAddress& rCellPos ) pOUText.reset( getOutputString(rXMLImport.GetDocument(), rCellPos) ); if (maParagraphs.empty() && !pOUText && !maStringValue) - bIsEmpty = true; + bIsEmpty = true; } ScAddress aCurrentPos( rCellPos ); -- cgit