diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:10:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:17 +0100 |
commit | e68121b3c1d973d149adad4d8e1bcbe042107506 (patch) | |
tree | beade9fd10b68520b6a782d536e4bbb1526dba96 /binaryurp/source/binaryany.cxx | |
parent | 08e49fa3377d8c4e7e5df7a32233fcd9763ee936 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: Ic3516d9069cbe935f5b82aec0afac3facdc814a5
Diffstat (limited to 'binaryurp/source/binaryany.cxx')
-rw-r--r-- | binaryurp/source/binaryany.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/binaryurp/source/binaryany.cxx b/binaryurp/source/binaryany.cxx index d1b345a355b4..a1994178c8d0 100644 --- a/binaryurp/source/binaryany.cxx +++ b/binaryurp/source/binaryany.cxx @@ -30,18 +30,18 @@ namespace binaryurp { BinaryAny::BinaryAny() throw () { - uno_any_construct(&data_, 0, 0, 0); + uno_any_construct(&data_, nullptr, nullptr, nullptr); } BinaryAny::BinaryAny(css::uno::TypeDescription const & type, void * value) throw () { assert(type.is()); - uno_any_construct(&data_, value, type.get(), 0); + uno_any_construct(&data_, value, type.get(), nullptr); } BinaryAny::BinaryAny(uno_Any const & raw) throw () { - assert(raw.pType != 0); + assert(raw.pType != nullptr); data_.pType = raw.pType; typelib_typedescriptionreference_acquire(data_.pType); data_.pData = raw.pData == &raw.pReserved ? &data_.pReserved : raw.pData; @@ -49,16 +49,16 @@ BinaryAny::BinaryAny(uno_Any const & raw) throw () { } BinaryAny::BinaryAny(BinaryAny const & other) throw () { - uno_type_any_construct(&data_, other.data_.pData, other.data_.pType, 0); + uno_type_any_construct(&data_, other.data_.pData, other.data_.pType, nullptr); } BinaryAny::~BinaryAny() throw () { - uno_any_destruct(&data_, 0); + uno_any_destruct(&data_, nullptr); } BinaryAny & BinaryAny::operator =(BinaryAny const & other) throw () { if (&other != this) { - uno_type_any_assign(&data_, other.data_.pData, other.data_.pType, 0, 0); + uno_type_any_assign(&data_, other.data_.pData, other.data_.pType, nullptr, nullptr); } return *this; } |