summaryrefslogtreecommitdiff
path: root/tools/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-01 13:55:55 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-02 06:37:53 +0000
commitd3d4b8691968810bb57bbd94dde39bb7be4be4da (patch)
tree0a2720842b799b0803d879a4ae3d021ff7777f4a /tools/qa
parenta28231b72b5a87dddffad82a34deac4e5bb76ed1 (diff)
loplugin:unusedmethods tools
Change-Id: I45f5489233879126d4f9ee3d01db504d950bb597 Reviewed-on: https://gerrit.libreoffice.org/16656 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'tools/qa')
-rw-r--r--tools/qa/cppunit/test_bigint.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx
index 87ebed67bd1d..5b2be39c97fb 100644
--- a/tools/qa/cppunit/test_bigint.cxx
+++ b/tools/qa/cppunit/test_bigint.cxx
@@ -31,18 +31,13 @@ namespace tools
class BigIntTest : public CppUnit::TestFixture
{
public:
-#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG
void testConstructionFromLongLong();
-#endif
CPPUNIT_TEST_SUITE(BigIntTest);
-#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG
CPPUNIT_TEST(testConstructionFromLongLong);
-#endif
CPPUNIT_TEST_SUITE_END();
};
-#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG
void BigIntTest::testConstructionFromLongLong()
{
// small positive number
@@ -65,6 +60,7 @@ void BigIntTest::testConstructionFromLongLong()
CPPUNIT_ASSERT_EQUAL(-42L, static_cast<long>(bi));
}
+#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG
// positive number just fitting to long
{
BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::max()));
@@ -102,8 +98,8 @@ void BigIntTest::testConstructionFromLongLong()
CPPUNIT_ASSERT(bi.IsNeg());
CPPUNIT_ASSERT(!bi.IsLong());
}
-}
#endif
+}
CPPUNIT_TEST_SUITE_REGISTRATION(BigIntTest);