diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-01-24 05:06:14 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-01-24 05:06:45 +0100 |
commit | 2aedbd241f05692cde01c60c51ba398777e372bb (patch) | |
tree | 224a5cf54f524fd6c0f068820516f93fee1b9646 /test | |
parent | 2c659e692a17cc10d364a2304bead9403fc6bdde (diff) |
fix WaE
Diffstat (limited to 'test')
-rw-r--r-- | test/source/sheet/xdatabaserange.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/source/sheet/xdatabaserange.cxx b/test/source/sheet/xdatabaserange.cxx index d8cf5e4a1929..92423e9d6dfb 100644 --- a/test/source/sheet/xdatabaserange.cxx +++ b/test/source/sheet/xdatabaserange.cxx @@ -87,19 +87,19 @@ void XDatabaseRange::testGetSortDescriptor() if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsSortColumns"))) { - sal_Bool bIsSortColumns; + sal_Bool bIsSortColumns = true; xProp.Value >>= bIsSortColumns; CPPUNIT_ASSERT(bIsSortColumns == false); } else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ContainsHeader"))) { - sal_Bool bContainsHeader; + sal_Bool bContainsHeader = true; xProp.Value >>= bContainsHeader; CPPUNIT_ASSERT(bContainsHeader == true); } else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MaxFieldCount"))) { - sal_Int32 nMaxFieldCount; + sal_Int32 nMaxFieldCount = 0; xProp.Value >>= nMaxFieldCount; std::cout << "Value: " << nMaxFieldCount << std::endl; @@ -110,13 +110,13 @@ void XDatabaseRange::testGetSortDescriptor() } else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("BindFormatsToContent"))) { - sal_Bool bBindFormatsToContent; + sal_Bool bBindFormatsToContent = false; xProp.Value >>= bBindFormatsToContent; CPPUNIT_ASSERT(bBindFormatsToContent == true); } else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CopyOutputData"))) { - sal_Bool bCopyOutputData; + sal_Bool bCopyOutputData = true; xProp.Value >>= bCopyOutputData; CPPUNIT_ASSERT(bCopyOutputData == false); } @@ -126,14 +126,14 @@ void XDatabaseRange::testGetSortDescriptor() } else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsUserListEnabled"))) { - sal_Bool bIsUserListEnabled; + sal_Bool bIsUserListEnabled true; xProp.Value >>= bIsUserListEnabled; CPPUNIT_ASSERT(bIsUserListEnabled == false); } else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UserListIndex"))) { - sal_Int32 nUserListIndex; + sal_Int32 nUserListIndex = 1; xProp.Value >>= nUserListIndex; CPPUNIT_ASSERT(nUserListIndex == 0); } |