summaryrefslogtreecommitdiff
path: root/basic/qa/cppunit/test_nested_struct.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-07-22 09:14:24 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-22 08:32:36 +0000
commit4e6d0f6fe70cb84c0fda0cc8e61baf20f5ab250e (patch)
treeb42201f80c624bc88fabbffb41534f73a26ee639 /basic/qa/cppunit/test_nested_struct.cxx
parent10b13ba41d608a14789a94f53344d76bceca9aae (diff)
basic: fix loplugin:cppunitassertequals warnings
Change-Id: I80c773f3127ebbce4b9b2a122a91a2e2ca4f505b Reviewed-on: https://gerrit.libreoffice.org/27424 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'basic/qa/cppunit/test_nested_struct.cxx')
-rw-r--r--basic/qa/cppunit/test_nested_struct.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/qa/cppunit/test_nested_struct.cxx b/basic/qa/cppunit/test_nested_struct.cxx
index aaa3ca87a16c..2fc06005072e 100644
--- a/basic/qa/cppunit/test_nested_struct.cxx
+++ b/basic/qa/cppunit/test_nested_struct.cxx
@@ -173,7 +173,7 @@ void Nested_Struct::testAssign1()
myMacro.Compile();
CPPUNIT_ASSERT_MESSAGE("testAssign1 fails with compile error",!myMacro.HasError() );
SbxVariableRef pNew = myMacro.Run();
- CPPUNIT_ASSERT(pNew->GetInteger() == 9 );
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int16>(9), pNew->GetInteger());
}
void Nested_Struct::testAssign1Alt()
@@ -196,7 +196,7 @@ void Nested_Struct::testOldAssign()
myMacro.Compile();
CPPUNIT_ASSERT_MESSAGE("testOldAssign fails with compile error",!myMacro.HasError() );
SbxVariableRef pNew = myMacro.Run();
- CPPUNIT_ASSERT(pNew->GetInteger() == 9 );
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int16>(9), pNew->GetInteger());
}
void Nested_Struct::testOldAssignAlt()
@@ -220,7 +220,7 @@ void Nested_Struct::testUnfixedVarAssign()
CPPUNIT_ASSERT_MESSAGE("testUnfixedVarAssign fails with compile error",!myMacro.HasError() );
// forces a broadcast
SbxVariableRef pNew = myMacro.Run();
- CPPUNIT_ASSERT(pNew->GetInteger() == 13 );
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int16>(13), pNew->GetInteger());
}
void Nested_Struct::testUnfixedVarAssignAlt()
@@ -256,7 +256,7 @@ void Nested_Struct::testFixedVarAssign()
myMacro.Compile();
CPPUNIT_ASSERT_MESSAGE("testFixedVarAssign fails with compile error",!myMacro.HasError() );
SbxVariableRef pNew = myMacro.Run();
- CPPUNIT_ASSERT(pNew->GetInteger() == 13 );
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int16>(13), pNew->GetInteger());
}
void Nested_Struct::testFixedVarAssignAlt()