diff options
Diffstat (limited to 'sal/qa/systools/test_comtools.cxx')
-rw-r--r-- | sal/qa/systools/test_comtools.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sal/qa/systools/test_comtools.cxx b/sal/qa/systools/test_comtools.cxx index b85dcfd19..e14debabd 100644 --- a/sal/qa/systools/test_comtools.cxx +++ b/sal/qa/systools/test_comtools.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -197,7 +198,7 @@ namespace test_comtools sal::systools::COMReference<IUnknown> r2 = r1.QueryInterface<IUnknown>(IID_IUnknown); CPPUNIT_ASSERT_MESSAGE("Wrong reference count, 2 is expected", reinterpret_cast<COMObject*>(r2.get())->GetRefCount() == 2); } - catch(sal::systools::ComError& ex) + catch(const sal::systools::ComError& ex) { CPPUNIT_ASSERT_MESSAGE("Exception should not have been thrown", false); } @@ -210,7 +211,7 @@ namespace test_comtools sal::systools::COMReference<IUnknown> r1 = comObjectSource(); sal::systools::COMReference<IPersistFile> r2 = r1.QueryInterface<IPersistFile>(IID_IPersistFile); } - catch(sal::systools::ComError& ex) + catch(const sal::systools::ComError& ex) { return; } @@ -248,3 +249,4 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(test_comtools::test_COMReference, "test_co // to let the user the possibility to also register some functions by hand. NOADDITIONAL; +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |