From f0772f616b66665f8a5f53186f009146d36f1ef1 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 11 Aug 2013 23:16:30 +0200 Subject: Reduce scope Change-Id: I1a0e8f92056c24740505e488a318aabd12a4df05 --- chart2/source/tools/ExplicitCategoriesProvider.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chart2') diff --git a/chart2/source/tools/ExplicitCategoriesProvider.cxx b/chart2/source/tools/ExplicitCategoriesProvider.cxx index 5c2b9aa48a5f..315f25f76048 100644 --- a/chart2/source/tools/ExplicitCategoriesProvider.cxx +++ b/chart2/source/tools/ExplicitCategoriesProvider.cxx @@ -468,12 +468,12 @@ bool lcl_fillDateCategories( const uno::Reference< data::XDataSequence >& xDataS bIsDate = true; bool bContainsEmptyString = false; - bool bContainsNan = false; uno::Any aAny = aValues[nN]; if( aAny.hasValue() ) { OUString aTest; double fTest = 0; + bool bContainsNan = false; if( (aAny>>=aTest) && aTest.isEmpty() ) //empty String bContainsEmptyString = true; else if( (aAny>>=fTest) && ::rtl::math::isNan(fTest) ) -- cgit