[Libreoffice-commits] .: test/source
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Apr 20 07:16:05 PDT 2012
test/source/sheet/xdatabaserange.cxx | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
New commits:
commit 6a018dec6b1abe75464bd510d441ab56d7291e1f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Apr 20 13:47:32 2012 +0100
WaE: MSVC2008 C2220 unsafe mix of types in operation
diff --git a/test/source/sheet/xdatabaserange.cxx b/test/source/sheet/xdatabaserange.cxx
index 381e892..7715305 100644
--- a/test/source/sheet/xdatabaserange.cxx
+++ b/test/source/sheet/xdatabaserange.cxx
@@ -91,15 +91,15 @@ void XDatabaseRange::testGetSortDescriptor()
if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsSortColumns")))
{
- sal_Bool bIsSortColumns = true;
+ sal_Bool bIsSortColumns = sal_True;
xProp.Value >>= bIsSortColumns;
- CPPUNIT_ASSERT(bIsSortColumns == true);
+ CPPUNIT_ASSERT(bIsSortColumns == sal_True);
}
else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ContainsHeader")))
{
- sal_Bool bContainsHeader = true;
+ sal_Bool bContainsHeader = sal_True;
xProp.Value >>= bContainsHeader;
- CPPUNIT_ASSERT(bContainsHeader == true);
+ CPPUNIT_ASSERT(bContainsHeader == sal_True);
}
else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MaxFieldCount")))
{
@@ -114,15 +114,15 @@ void XDatabaseRange::testGetSortDescriptor()
}
else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("BindFormatsToContent")))
{
- sal_Bool bBindFormatsToContent = false;
+ sal_Bool bBindFormatsToContent = sal_False;
xProp.Value >>= bBindFormatsToContent;
- CPPUNIT_ASSERT(bBindFormatsToContent == true);
+ CPPUNIT_ASSERT(bBindFormatsToContent == sal_False);
}
else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CopyOutputData")))
{
- sal_Bool bCopyOutputData = true;
+ sal_Bool bCopyOutputData = sal_True;
xProp.Value >>= bCopyOutputData;
- CPPUNIT_ASSERT(bCopyOutputData == false);
+ CPPUNIT_ASSERT(bCopyOutputData == sal_False);
}
else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OutputPosition")))
{
@@ -130,9 +130,9 @@ void XDatabaseRange::testGetSortDescriptor()
}
else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsUserListEnabled")))
{
- sal_Bool bIsUserListEnabled = true;
+ sal_Bool bIsUserListEnabled = sal_True;
xProp.Value >>= bIsUserListEnabled;
- CPPUNIT_ASSERT(bIsUserListEnabled == false);
+ CPPUNIT_ASSERT(bIsUserListEnabled == sal_False);
}
else if (xProp.Name == rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("UserListIndex")))
@@ -180,7 +180,7 @@ void XDatabaseRange::testRefresh()
uno::Reference< beans::XPropertySet > xPropRow(xRow, UNO_QUERY_THROW);
Any aAny = xPropRow->getPropertyValue( aHidden );
- CPPUNIT_ASSERT( aAny.get<sal_Bool>() == true);
+ CPPUNIT_ASSERT(aAny.get<sal_Bool>() == sal_True);
}
xDBRange->refresh();
@@ -194,7 +194,7 @@ void XDatabaseRange::testRefresh()
uno::Reference< beans::XPropertySet > xPropRow(xRow, UNO_QUERY_THROW);
Any aAny = xPropRow->getPropertyValue( aHidden );
- CPPUNIT_ASSERT( aAny.get<sal_Bool>() == false);
+ CPPUNIT_ASSERT(aAny.get<sal_Bool>() == sal_False);
}
More information about the Libreoffice-commits
mailing list