summaryrefslogtreecommitdiff
path: root/sc/qa/extras
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-13 10:49:42 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-13 10:49:42 +0900
commit5b3a30f40a7ce476922649b734f6ede1c2fdef4b (patch)
tree1ba88704e675728b6f9867bb87d58a7414f99924 /sc/qa/extras
parentcb7b94bfcc6709ff3cf8fb98ca7a1a3768092b39 (diff)
fix warning when running "make check" with werror
Change-Id: I490568b715f21c94a1078fe04368ed7c9132c311
Diffstat (limited to 'sc/qa/extras')
-rw-r--r--sc/qa/extras/recordchanges-test.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/qa/extras/recordchanges-test.cxx b/sc/qa/extras/recordchanges-test.cxx
index 67e84e335c26..fa3b36ea80c1 100644
--- a/sc/qa/extras/recordchanges-test.cxx
+++ b/sc/qa/extras/recordchanges-test.cxx
@@ -42,8 +42,8 @@ void ScRecordChangesTest::testSetRecordChanges()
uno::Reference< sheet::XSpreadsheetDocument > xDoc(xComponent, UNO_QUERY_THROW);
uno::Reference< beans::XPropertySet > xDocSettingsPropSet (xDoc, UNO_QUERY_THROW);
- bool recordChangesValue;
- bool protectionValue;
+ bool recordChangesValue = true;
+ bool protectionValue = true;
CPPUNIT_ASSERT(xDocSettingsPropSet->getPropertyValue("RecordChanges") >>= recordChangesValue);
CPPUNIT_ASSERT(xDocSettingsPropSet->getPropertyValue("IsRecordChangesProtected") >>= protectionValue);
@@ -52,7 +52,7 @@ void ScRecordChangesTest::testSetRecordChanges()
CPPUNIT_ASSERT_MESSAGE("a new document does not protect record changes", !protectionValue);
// now activate recording
- uno::Any xValue;;
+ uno::Any xValue;
xValue <<= true;
xDocSettingsPropSet->setPropertyValue("RecordChanges", xValue);
@@ -72,8 +72,8 @@ void ScRecordChangesTest::testCheckRecordChangesProtection()
uno::Reference< sheet::XSpreadsheetDocument > xDoc(xComponent, UNO_QUERY_THROW);
uno::Reference< beans::XPropertySet > xDocSettingsPropSet (xDoc, UNO_QUERY_THROW);
- bool recordChangesValue;
- bool protectionValue;
+ bool recordChangesValue = false;
+ bool protectionValue = false;
CPPUNIT_ASSERT(xDocSettingsPropSet->getPropertyValue("RecordChanges") >>= recordChangesValue);
CPPUNIT_ASSERT(xDocSettingsPropSet->getPropertyValue("IsRecordChangesProtected") >>= protectionValue);
@@ -82,7 +82,7 @@ void ScRecordChangesTest::testCheckRecordChangesProtection()
CPPUNIT_ASSERT_MESSAGE("the protection should be active", protectionValue);
// try to de-activate recording
- uno::Any xValue;;
+ uno::Any xValue;
xValue <<= false;
xDocSettingsPropSet->setPropertyValue("RecordChanges", xValue);