From e8e22fcefd569bdf6c3fbe67bb64206e67c3e6b7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Jun 2014 14:39:10 +0200 Subject: -Werror,-Wtautological-undefined-compare Change-Id: Ibf0abf45f0522c7e887f9ce4567aca647325b9ce --- sc/source/core/tool/cellform.cxx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sc/source/core/tool/cellform.cxx b/sc/source/core/tool/cellform.cxx index 0a7f894b5300..9c1e3e4f8424 100644 --- a/sc/source/core/tool/cellform.cxx +++ b/sc/source/core/tool/cellform.cxx @@ -41,11 +41,6 @@ void ScCellFormat::GetString( ScRefCellValue& rCell, sal_uLong nFormat, OUString bool bUseStarFormat ) { *ppColor = NULL; - if (&rFormatter==NULL) - { - rString = EMPTY_OUSTRING; - return; - } switch (rCell.meType) { @@ -231,12 +226,6 @@ OUString ScCellFormat::GetString( void ScCellFormat::GetInputString( ScRefCellValue& rCell, sal_uLong nFormat, OUString& rString, SvNumberFormatter& rFormatter, const ScDocument* pDoc ) { - if (&rFormatter == NULL) - { - rString = EMPTY_OUSTRING; - return; - } - OUString aString = rString; switch (rCell.meType) { -- cgit v1.2.3