diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-07 22:57:00 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-02-11 22:33:32 -0500 |
commit | 4dab3a66173916ea7018abad84530aa820d4eb5e (patch) | |
tree | c612d796c63659e61a1a080317d6ead19fca4a24 /sc/source/filter/xml | |
parent | 5becce4c4462d483f0856b4dbca8d92113fa5bec (diff) |
No need to check for empty value; it's checked when a value is assigned.
Change-Id: I7d96910a6d8216aa17858b0cb05e161080c8dccc
Diffstat (limited to 'sc/source/filter/xml')
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 6 |
1 files 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<ScFormulaCell*>(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 ); |