From ebdbd2b578c970694597dc163125842e9073bf6c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 28 Nov 2011 21:11:28 +0100 Subject: Adapted to new assertion/logging mechanisms. --- binaryurp/source/binaryany.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'binaryurp/source/binaryany.cxx') diff --git a/binaryurp/source/binaryany.cxx b/binaryurp/source/binaryany.cxx index c8c8a4c63a3f..0c510f65a775 100644 --- a/binaryurp/source/binaryany.cxx +++ b/binaryurp/source/binaryany.cxx @@ -28,7 +28,8 @@ #include "sal/config.h" -#include "osl/diagnose.h" +#include + #include "typelib/typeclass.h" #include "typelib/typedescription.hxx" #include "uno/any2.h" @@ -50,12 +51,12 @@ BinaryAny::BinaryAny() throw () { BinaryAny::BinaryAny(css::uno::TypeDescription const & type, void * value) throw () { - OSL_ASSERT(type.is()); + assert(type.is()); uno_any_construct(&data_, value, type.get(), 0); } BinaryAny::BinaryAny(uno_Any const & raw) throw () { - OSL_ASSERT(raw.pType != 0); + assert(raw.pType != 0); data_.pType = raw.pType; typelib_typedescriptionreference_acquire(data_.pType); data_.pData = raw.pData == &raw.pReserved ? &data_.pReserved : raw.pData; @@ -88,7 +89,7 @@ css::uno::TypeDescription BinaryAny::getType() const throw () { void * BinaryAny::getValue(css::uno::TypeDescription const & type) const throw () { - OSL_ASSERT( + assert( type.is() && (type.get()->eTypeClass == typelib_TypeClass_ANY || type.equals(css::uno::TypeDescription(data_.pType)))); -- cgit