summaryrefslogtreecommitdiff
path: root/test/source/sheet/datapilotfield.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-08 16:21:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-08 16:21:41 +0100
commitf21c57c2bc5b24b6afe261bc1530e6f86168f25e (patch)
tree5e00c1b927e688c0efe17441e4ef096d261278b2 /test/source/sheet/datapilotfield.cxx
parent940ac1e52ef5921e47a835f28e4da870cc2ded40 (diff)
WaE: -Werror=maybe-uninitialized
Change-Id: Iec05633cf1716079eee54c376bd0736b638673dd
Diffstat (limited to 'test/source/sheet/datapilotfield.cxx')
-rw-r--r--test/source/sheet/datapilotfield.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/source/sheet/datapilotfield.cxx b/test/source/sheet/datapilotfield.cxx
index 1cd175a21faf..581bc26f2035 100644
--- a/test/source/sheet/datapilotfield.cxx
+++ b/test/source/sheet/datapilotfield.cxx
@@ -50,7 +50,7 @@ void DataPilotField::testSortInfo()
&& aNewSortInfoValue.Mode == aSortInfoValue.Mode && aNewSortInfoValue.IsAscending == aSortInfoValue.IsAscending);
//setting HasSortInfo only makes sense for false, for true the uno implementation does nothing
- bool bHasSortInfo;
+ bool bHasSortInfo(false);
OUString aHasSortInfo("HasSortInfo");
xValue = xPropSet->getPropertyValue(aHasSortInfo);
CPPUNIT_ASSERT( xValue >>= bHasSortInfo );
@@ -83,7 +83,7 @@ void DataPilotField::testLayoutInfo()
aNewLayoutInfoValue.AddEmptyLines == aLayoutInfoValue.AddEmptyLines);
//setting HasLayoutInfo only makes sense for false, tor true the uno implementation does nothing
- bool bHasLayoutInfo;
+ bool bHasLayoutInfo(false);
OUString aHasLayoutInfo("HasLayoutInfo");
xValue = xPropSet->getPropertyValue(aHasLayoutInfo);
CPPUNIT_ASSERT( xValue >>= bHasLayoutInfo );
@@ -116,7 +116,7 @@ void DataPilotField::testAutoShowInfo()
aNewAutoShowInfoValue.IsEnabled == aAutoShowInfoValue.IsEnabled);
//setting HasLayoutInfo only makes sense for false, tor true the uno implementation does nothing
- bool bHasAutoShowInfo;
+ bool bHasAutoShowInfo(false);
OUString aHasAutoShowInfo("HasAutoShowInfo");
xValue = xPropSet->getPropertyValue(aHasAutoShowInfo);
CPPUNIT_ASSERT( xValue >>= bHasAutoShowInfo );
@@ -149,7 +149,7 @@ void DataPilotField::testReference()
&& aReferenceValue.ReferenceItemType == aNewReferenceValue.ReferenceItemType);
//setting HasReference only makes sense for false, tor true the uno implementation does nothing
- bool bHasReference;
+ bool bHasReference(false);
OUString aHasReference("HasReference");
xValue = xPropSet->getPropertyValue(aHasReference);
CPPUNIT_ASSERT( xValue >>= bHasReference );
@@ -169,7 +169,7 @@ void DataPilotField::testIsGroupField()
uno::Reference< beans::XPropertySet > xPropSet(init(),UNO_QUERY_THROW);
uno::Any xValue;
OUString aIsGroupField("IsGroupField");
- bool bIsGroupField;
+ bool bIsGroupField(false);
xValue = xPropSet->getPropertyValue(aIsGroupField);
CPPUNIT_ASSERT( xValue >>= bIsGroupField);