sax: fix build: needs explicit type

Change-Id: I5a5c52215b0177d663f0694515240c3f95a3ab40
This commit is contained in:
Matúš Kukan
2013-10-17 21:55:49 +02:00
parent 45d569be8f
commit b9c9874853

View File

@@ -63,15 +63,15 @@ void AttributesTest::test()
aAttributeList.addUnknown("a", "a");
aAttributeList.addUnknown("b", "b", "b");
aAttributeList.addUnknown("c", "c");
CPPUNIT_ASSERT_EQUAL( 3, aAttributeList.getUnknownAttributes().getLength() );
CPPUNIT_ASSERT_EQUAL( (sal_Int32) 3, aAttributeList.getUnknownAttributes().getLength() );
CPPUNIT_ASSERT_EQUAL( 2, aAttributeList.getFastAttributes().getLength() );
CPPUNIT_ASSERT_EQUAL( (sal_Int32) 2, aAttributeList.getFastAttributes().getLength() );
aAttributeList.clear();
CPPUNIT_ASSERT( !aAttributeList.hasAttribute(1) );
CPPUNIT_ASSERT_EQUAL( 0, aAttributeList.getFastAttributes().getLength() );
CPPUNIT_ASSERT_EQUAL( (sal_Int32) 0, aAttributeList.getFastAttributes().getLength() );
aAttributeList.addUnknown("c", "c");
CPPUNIT_ASSERT_EQUAL( 1, aAttributeList.getUnknownAttributes().getLength() );
CPPUNIT_ASSERT_EQUAL( (sal_Int32) 1, aAttributeList.getUnknownAttributes().getLength() );
}
CPPUNIT_TEST_SUITE_REGISTRATION( AttributesTest );