aboutsummaryrefslogtreecommitdiff
path: root/source/sd
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2017-10-18 14:30:00 +0200
committerAndras Timar <andras.timar@collabora.com>2017-10-18 14:30:00 +0200
commit639342ecb83334102cb3659a5894643ac64d7327 (patch)
tree62409a584d8c21528431ffc3e1f3cf26ca487da1 /source/sd
parent5abc8de85b5de2dc770cf1c21d2294808c8d2142 (diff)
Updated Slovenian translation
Change-Id: I4f383165e70367dae3f1bd7fe3bf975830b9245b
Diffstat (limited to 'source/sd')
0 files changed, 0 insertions, 0 deletions
e-style-rebased LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:12:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:20 +0100
commit4730b58d9989512ed25790768ba78decfde7d667 (patch)
tree2d53902a514a0f69a70dc0bc7bebe6d39290e1be /cppu
parent311fd06af4e297fa748684a61edd3ee38845c485 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I17eb40b2923793280ea220e519f97563c8490a19
Diffstat (limited to 'cppu')
-rw-r--r--cppu/qa/cppumaker/test_cppumaker.cxx8
-rw-r--r--cppu/qa/test_unotype.cxx172
-rw-r--r--cppu/source/AffineBridge/AffineBridge.cxx12
-rw-r--r--cppu/source/LogBridge/LogBridge.cxx2
-rw-r--r--cppu/source/helper/purpenv/helper_purpenv_Environment.cxx2
-rw-r--r--cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx8
-rw-r--r--cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx60
-rw-r--r--cppu/source/threadpool/current.cxx32
-rw-r--r--cppu/source/threadpool/jobqueue.cxx6
-rw-r--r--cppu/source/threadpool/thread.cxx2
-rw-r--r--cppu/source/threadpool/threadident.cxx2
-rw-r--r--cppu/source/threadpool/threadpool.cxx22
-rw-r--r--cppu/source/typelib/static_types.cxx52
-rw-r--r--cppu/source/typelib/typelib.cxx256
-rw-r--r--cppu/source/uno/EnvStack.cxx16
-rw-r--r--cppu/source/uno/any.cxx12
-rw-r--r--cppu/source/uno/assign.hxx14
-rw-r--r--cppu/source/uno/cascade_mapping.cxx20
-rw-r--r--cppu/source/uno/constr.hxx4
-rw-r--r--cppu/source/uno/copy.hxx34
-rw-r--r--cppu/source/uno/data.cxx44
-rw-r--r--cppu/source/uno/destr.hxx8
-rw-r--r--cppu/source/uno/eq.hxx14
-rw-r--r--cppu/source/uno/lbenv.cxx48
-rw-r--r--cppu/source/uno/lbmap.cxx40
-rw-r--r--cppu/source/uno/prim.hxx2
-rw-r--r--cppu/source/uno/sequence.cxx128
27 files changed, 510 insertions, 510 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);
diff --git a/cppu/qa/test_unotype.cxx b/cppu/qa/test_unotype.cxx
index 053b155628f1..88ced4b5c17c 100644
--- a/cppu/qa/test_unotype.cxx
+++ b/cppu/qa/test_unotype.cxx
@@ -93,8 +93,8 @@ public:
void Test::testUnoType() {
// Avoid warnings about unused ~DerivedInterface1/2 (see above):
if (false) {
- DerivedInterface1::dummy(0);
- DerivedInterface2::dummy(0);
+ DerivedInterface1::dummy(nullptr);
+ DerivedInterface2::dummy(nullptr);
}
css::uno::Type t;
@@ -276,161 +276,161 @@ void Test::testGetTypeFavourUnsigned() {
// ::getCppuType(static_cast< ::sal_uInt16 * >(0)));
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< ::cppu::UnoVoidType * >(0)) ==
+ static_cast< ::cppu::UnoVoidType * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoVoidType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< bool * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< bool * >(nullptr)) ==
::cppu::UnoType< bool >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< sal_Bool * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< sal_Bool * >(nullptr)) ==
::cppu::UnoType< bool >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int8 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int8 * >(nullptr)) ==
::cppu::UnoType< ::sal_Int8 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int16 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int16 * >(nullptr)) ==
::cppu::UnoType< ::sal_Int16 >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< ::cppu::UnoUnsignedShortType * >(0)) ==
+ static_cast< ::cppu::UnoUnsignedShortType * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt16 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt16 * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int32 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int32 * >(nullptr)) ==
::cppu::UnoType< ::sal_Int32 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt32 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt32 * >(nullptr)) ==
::cppu::UnoType< ::sal_uInt32 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int64 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Int64 * >(nullptr)) ==
::cppu::UnoType< ::sal_Int64 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt64 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< ::sal_uInt64 * >(nullptr)) ==
::cppu::UnoType< ::sal_uInt64 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< float * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< float * >(nullptr)) ==
::cppu::UnoType< float >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< double * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< double * >(nullptr)) ==
::cppu::UnoType< double >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< ::cppu::UnoCharType * >(0)) ==
+ static_cast< ::cppu::UnoCharType * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoCharType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Unicode * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< ::sal_Unicode * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< ::rtl::OUString * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< ::rtl::OUString * >(nullptr)) ==
::cppu::UnoType< ::rtl::OUString >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< css::uno::Type * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< css::uno::Type * >(nullptr)) ==
::cppu::UnoType< css::uno::Type >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< css::uno::Any * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< css::uno::Any * >(nullptr)) ==
::cppu::UnoType< css::uno::Any >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
static_cast<
- ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > * >(0)) ==
+ ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > * >(nullptr)) ==
::cppu::UnoType<
::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::Sequence< ::sal_uInt16 > * >(0)) ==
+ static_cast< css::uno::Sequence< ::sal_uInt16 > * >(nullptr)) ==
::cppu::UnoType<
::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
static_cast< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
- ::cppu::UnoUnsignedShortType > > * >(0)) ==
+ ::cppu::UnoUnsignedShortType > > * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
::cppu::UnoUnsignedShortType > > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
static_cast< css::uno::Sequence< css::uno::Sequence<
- ::sal_uInt16 > > * >(0)) ==
+ ::sal_uInt16 > > * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
::cppu::UnoUnsignedShortType > > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::Sequence< ::sal_Unicode > * >(0)) ==
+ static_cast< css::uno::Sequence< ::sal_Unicode > * >(nullptr)) ==
::cppu::UnoType<
::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
static_cast< css::uno::Sequence< css::uno::Sequence<
- ::sal_Unicode > > * >(0)) ==
+ ::sal_Unicode > > * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
::cppu::UnoUnsignedShortType > > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::TypeClass * >(0)) ==
+ static_cast< css::uno::TypeClass * >(nullptr)) ==
::cppu::UnoType< css::uno::TypeClass >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::lang::EventObject * >(0)) ==
+ static_cast< css::lang::EventObject * >(nullptr)) ==
::cppu::UnoType< css::lang::EventObject >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< DerivedStruct1 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< DerivedStruct1 * >(nullptr)) ==
::cppu::UnoType< css::lang::EventObject >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::beans::PropertyChangeEvent * >(0)) ==
+ static_cast< css::beans::PropertyChangeEvent * >(nullptr)) ==
::cppu::UnoType< css::beans::PropertyChangeEvent >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< DerivedStruct2 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< DerivedStruct2 * >(nullptr)) ==
::cppu::UnoType< css::beans::PropertyChangeEvent >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::beans::Optional< ::sal_Int8 > * >(0)) ==
+ static_cast< css::beans::Optional< ::sal_Int8 > * >(nullptr)) ==
::cppu::UnoType< css::beans::Optional< ::sal_Int8 > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::Exception * >(0)) ==
+ static_cast< css::uno::Exception * >(nullptr)) ==
::cppu::UnoType< css::uno::Exception >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< DerivedException1 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< DerivedException1 * >(nullptr)) ==
::cppu::UnoType< css::uno::Exception >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::RuntimeException * >(0)) ==
+ static_cast< css::uno::RuntimeException * >(nullptr)) ==
::cppu::UnoType< css::uno::RuntimeException >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< DerivedException2 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< DerivedException2 * >(nullptr)) ==
::cppu::UnoType< css::uno::RuntimeException >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::XInterface * >(0)) ==
+ static_cast< css::uno::XInterface * >(nullptr)) ==
::cppu::UnoType< css::uno::XInterface >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::Reference< css::uno::XInterface > * >(0)) ==
+ static_cast< css::uno::Reference< css::uno::XInterface > * >(nullptr)) ==
::cppu::UnoType< css::uno::XInterface >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< DerivedInterface1 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< DerivedInterface1 * >(nullptr)) ==
::cppu::UnoType< css::uno::XInterface >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::Reference< DerivedInterface1 > * >(0)) ==
+ static_cast< css::uno::Reference< DerivedInterface1 > * >(nullptr)) ==
::cppu::UnoType< css::uno::XInterface >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::XComponentContext * >(0)) ==
+ static_cast< css::uno::XComponentContext * >(nullptr)) ==
::cppu::UnoType< css::uno::XComponentContext >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
static_cast<
- css::uno::Reference< css::uno::XComponentContext > * >(0)) ==
+ css::uno::Reference< css::uno::XComponentContext > * >(nullptr)) ==
::cppu::UnoType< css::uno::XComponentContext >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourUnsigned(static_cast< DerivedInterface2 * >(0)) ==
+ ::cppu::getTypeFavourUnsigned(static_cast< DerivedInterface2 * >(nullptr)) ==
::cppu::UnoType< css::uno::XComponentContext >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourUnsigned(
- static_cast< css::uno::Reference< DerivedInterface2 > * >(0)) ==
+ static_cast< css::uno::Reference< DerivedInterface2 > * >(nullptr)) ==
::cppu::UnoType< css::uno::XComponentContext >::get());
}
@@ -439,158 +439,158 @@ void Test::testGetTypeFavourChar() {
// CPPUNIT_ASSERT(
// ::getCppuType< ::sal_Unicode >() == ::getCppuType< ::sal_uInt16 >());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::cppu::UnoVoidType * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::cppu::UnoVoidType * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoVoidType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< bool * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< bool * >(nullptr)) ==
::cppu::UnoType< bool >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< sal_Bool * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< sal_Bool * >(nullptr)) ==
::cppu::UnoType< bool >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::sal_Int8 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::sal_Int8 * >(nullptr)) ==
::cppu::UnoType< ::sal_Int8 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::sal_Int16 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::sal_Int16 * >(nullptr)) ==
::cppu::UnoType< ::sal_Int16 >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< ::cppu::UnoUnsignedShortType * >(0)) ==
+ static_cast< ::cppu::UnoUnsignedShortType * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::sal_uInt16 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::sal_uInt16 * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoCharType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::sal_Int32 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::sal_Int32 * >(nullptr)) ==
::cppu::UnoType< ::sal_Int32 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::sal_uInt32 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::sal_uInt32 * >(nullptr)) ==
::cppu::UnoType< ::sal_uInt32 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::sal_Int64 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::sal_Int64 * >(nullptr)) ==
::cppu::UnoType< ::sal_Int64 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::sal_uInt64 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::sal_uInt64 * >(nullptr)) ==
::cppu::UnoType< ::sal_uInt64 >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< float * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< float * >(nullptr)) ==
::cppu::UnoType< float >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< double * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< double * >(nullptr)) ==
::cppu::UnoType< double >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::cppu::UnoCharType * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::cppu::UnoCharType * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoCharType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::sal_Unicode * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::sal_Unicode * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoCharType >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< ::rtl::OUString * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< ::rtl::OUString * >(nullptr)) ==
::cppu::UnoType< ::rtl::OUString >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< css::uno::Type * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< css::uno::Type * >(nullptr)) ==
::cppu::UnoType< css::uno::Type >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< css::uno::Any * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< css::uno::Any * >(nullptr)) ==
::cppu::UnoType< css::uno::Any >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
static_cast<
- ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > * >(0)) ==
+ ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > * >(nullptr)) ==
::cppu::UnoType<
::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::uno::Sequence< ::sal_uInt16 > * >(0)) ==
+ static_cast< css::uno::Sequence< ::sal_uInt16 > * >(nullptr)) ==
::cppu::UnoType<
::cppu::UnoSequenceType< ::cppu::UnoCharType > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
static_cast< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
- ::cppu::UnoUnsignedShortType > > * >(0)) ==
+ ::cppu::UnoUnsignedShortType > > * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
::cppu::UnoUnsignedShortType > > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
static_cast< css::uno::Sequence< css::uno::Sequence<
- ::sal_uInt16 > > * >(0)) ==
+ ::sal_uInt16 > > * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
::cppu::UnoCharType > > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::uno::Sequence< ::sal_Unicode > * >(0)) ==
+ static_cast< css::uno::Sequence< ::sal_Unicode > * >(nullptr)) ==
::cppu::UnoType<
::cppu::UnoSequenceType< ::cppu::UnoCharType > >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
static_cast< css::uno::Sequence< css::uno::Sequence<
- ::sal_Unicode > > * >(0)) ==
+ ::sal_Unicode > > * >(nullptr)) ==
::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType<
::cppu::UnoCharType > > >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< css::uno::TypeClass * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< css::uno::TypeClass * >(nullptr)) ==
::cppu::UnoType< css::uno::TypeClass >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::lang::EventObject * >(0)) ==
+ static_cast< css::lang::EventObject * >(nullptr)) ==
::cppu::UnoType< css::lang::EventObject >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< DerivedStruct1 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< DerivedStruct1 * >(nullptr)) ==
::cppu::UnoType< css::lang::EventObject >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::beans::PropertyChangeEvent * >(0)) ==
+ static_cast< css::beans::PropertyChangeEvent * >(nullptr)) ==
::cppu::UnoType< css::beans::PropertyChangeEvent >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< DerivedStruct2 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< DerivedStruct2 * >(nullptr)) ==
::cppu::UnoType< css::beans::PropertyChangeEvent >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::beans::Optional< ::sal_Int8 > * >(0)) ==
+ static_cast< css::beans::Optional< ::sal_Int8 > * >(nullptr)) ==
::cppu::UnoType< css::beans::Optional< ::sal_Int8 > >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< css::uno::Exception * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< css::uno::Exception * >(nullptr)) ==
::cppu::UnoType< css::uno::Exception >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< DerivedException1 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< DerivedException1 * >(nullptr)) ==
::cppu::UnoType< css::uno::Exception >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::uno::RuntimeException * >(0)) ==
+ static_cast< css::uno::RuntimeException * >(nullptr)) ==
::cppu::UnoType< css::uno::RuntimeException >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< DerivedException2 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< DerivedException2 * >(nullptr)) ==
::cppu::UnoType< css::uno::RuntimeException >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::uno::XInterface * >(0)) ==
+ static_cast< css::uno::XInterface * >(nullptr)) ==
::cppu::UnoType< css::uno::XInterface >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::uno::Reference< css::uno::XInterface > * >(0)) ==
+ static_cast< css::uno::Reference< css::uno::XInterface > * >(nullptr)) ==
::cppu::UnoType< css::uno::XInterface >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< DerivedInterface1 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< DerivedInterface1 * >(nullptr)) ==
::cppu::UnoType< css::uno::XInterface >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::uno::Reference< DerivedInterface1 > * >(0)) ==
+ static_cast< css::uno::Reference< DerivedInterface1 > * >(nullptr)) ==
::cppu::UnoType< css::uno::XInterface >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::uno::XComponentContext * >(0)) ==
+ static_cast< css::uno::XComponentContext * >(nullptr)) ==
::cppu::UnoType< css::uno::XComponentContext >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
static_cast<
- css::uno::Reference< css::uno::XComponentContext > * >(0)) ==
+ css::uno::Reference< css::uno::XComponentContext > * >(nullptr)) ==
::cppu::UnoType< css::uno::XComponentContext >::get());
CPPUNIT_ASSERT(
- ::cppu::getTypeFavourChar(static_cast< DerivedInterface2 * >(0)) ==
+ ::cppu::getTypeFavourChar(static_cast< DerivedInterface2 * >(nullptr)) ==
::cppu::UnoType< css::uno::XComponentContext >::get());
CPPUNIT_ASSERT(
::cppu::getTypeFavourChar(
- static_cast< css::uno::Reference< DerivedInterface2 > * >(0)) ==
+ static_cast< css::uno::Reference< DerivedInterface2 > * >(nullptr)) ==
::cppu::UnoType< css::uno::XComponentContext >::get());
}
diff --git a/cppu/source/AffineBridge/AffineBridge.cxx b/cppu/source/AffineBridge/AffineBridge.cxx
index 85463261627a..2fa80655ebcd 100644
--- a/cppu/source/AffineBridge/AffineBridge.cxx
+++ b/cppu/source/AffineBridge/AffineBridge.cxx
@@ -132,20 +132,20 @@ void OuterThread::run()
m_pAffineBridge->outerDispatch(0);
m_pAffineBridge->m_outerThreadId = 0;
- m_pAffineBridge->m_pOuterThread = NULL;
- m_pAffineBridge = NULL;
+ m_pAffineBridge->m_pOuterThread = nullptr;
+ m_pAffineBridge = nullptr;
}
AffineBridge::AffineBridge()
: m_message (CB_DONE),
- m_pCallee (0),
- m_pParam (0),
+ m_pCallee (nullptr),
+ m_pParam (nullptr),
m_innerThreadId(0),
- m_pInnerThread (NULL),
+ m_pInnerThread (nullptr),
m_enterCount (0),
m_outerThreadId(0),
- m_pOuterThread (NULL)
+ m_pOuterThread (nullptr)
{
LOG_LIFECYCLE_AffineBridge_emit(fprintf(stderr, "LIFE: %s -> %p\n", "AffineBridge::AffineBridge(uno_Environment * pEnv)", this));
}
diff --git a/cppu/source/LogBridge/LogBridge.cxx b/cppu/source/LogBridge/LogBridge.cxx
index edbdad8460b4..e791e7a5be94 100644
--- a/cppu/source/LogBridge/LogBridge.cxx
+++ b/cppu/source/LogBridge/LogBridge.cxx
@@ -236,7 +236,7 @@ void LogProbe(
if ( ppException && *ppException )
{
SAL_INFO("cppu.log", " exception occurred : ");
- typelib_TypeDescription * pElementTypeDescr = 0;
+ typelib_TypeDescription * pElementTypeDescr = nullptr;
TYPELIB_DANGER_GET( &pElementTypeDescr, (*ppException)->pType );
const ::rtl::OString sValue( ::rtl::OUStringToOString(pElementTypeDescr->pTypeName,osl_getThreadTextEncoding()));
SAL_INFO("cppu.log", "" << sValue.getStr());
diff --git a/cppu/source/helper/purpenv/helper_purpenv_Environment.cxx b/cppu/source/helper/purpenv/helper_purpenv_Environment.cxx
index e20206fd27fe..1e316c7f2550 100644
--- a/cppu/source/helper/purpenv/helper_purpenv_Environment.cxx
+++ b/cppu/source/helper/purpenv/helper_purpenv_Environment.cxx
@@ -275,7 +275,7 @@ Base::~Base()
m_pEnv->acquireWeak = m_env_acquireWeak;
m_pEnv->releaseWeak = m_env_releaseWeak;
- m_pEnv->pReserved = NULL;
+ m_pEnv->pReserved = nullptr;
delete m_pEnterable;
m_pEnv->release(m_pEnv);
diff --git a/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx b/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx
index 20c121b8d037..8f46ce7a875a 100644
--- a/