diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:12:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:20 +0100 |
commit | 4730b58d9989512ed25790768ba78decfde7d667 (patch) | |
tree | 2d53902a514a0f69a70dc0bc7bebe6d39290e1be /cppu/qa/cppumaker/test_cppumaker.cxx | |
parent | 311fd06af4e297fa748684a61edd3ee38845c485 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I17eb40b2923793280ea220e519f97563c8490a19
Diffstat (limited to 'cppu/qa/cppumaker/test_cppumaker.cxx')
-rw-r--r-- | cppu/qa/cppumaker/test_cppumaker.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cppu/qa/cppumaker/test_cppumaker.cxx b/cppu/qa/cppumaker/test_cppumaker.cxx index a775bcf7990e..c481b7707f6a 100644 --- a/cppu/qa/cppumaker/test_cppumaker.cxx +++ b/cppu/qa/cppumaker/test_cppumaker.cxx @@ -472,11 +472,11 @@ void Test::testBigStruct() { css::uno::Type t( cppu::UnoType< test::codemaker::cppumaker::BigStruct >::get()); - typelib_TypeDescription * td = NULL; + typelib_TypeDescription * td = nullptr; t.getDescription(&td); typelib_typedescription_complete(&td); fprintf(stdout, "#### 1\n"); - CPPUNIT_ASSERT(td != NULL); + CPPUNIT_ASSERT(td != nullptr); CPPUNIT_ASSERT_EQUAL(+typelib_TypeClass_STRUCT, +td->eTypeClass); typelib_StructTypeDescription * std = reinterpret_cast< typelib_StructTypeDescription * >(td); @@ -506,7 +506,7 @@ void Test::testExceptions() { aEmptySequence; test::codemaker::cppumaker::TestException1 e11( - rtl::OUString("abc"), 0, 1, + rtl::OUString("abc"), nullptr, 1, css::uno::makeAny(123.0), test::codemaker::cppumaker::HelperEnum_ONE, test::codemaker::cppumaker::Struct<sal_Int32, sal_Int32>(5, aEmptySequence), 2); @@ -516,7 +516,7 @@ void Test::testExceptions() { e13 = e11; CPPUNIT_ASSERT_EQUAL(e11, e13); test::codemaker::cppumaker::TestException2 e21( - rtl::OUString("abc"), 0, 1, + rtl::OUString("abc"), nullptr, 1, css::uno::makeAny(123.0), test::codemaker::cppumaker::HelperEnum_ONE, test::codemaker::cppumaker::Struct<sal_Int32, sal_Int32>(5, aEmptySequence), 2); |