From 272e761a13a6f58333cd574831852233e688d934 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 8 Jul 2016 00:00:34 +0200 Subject: split the assert into two Change-Id: Iab515327c9ba6ad9b22d68971f097b6848e704ea Reviewed-on: https://gerrit.libreoffice.org/27084 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- binaryurp/source/binaryany.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'binaryurp/source') diff --git a/binaryurp/source/binaryany.cxx b/binaryurp/source/binaryany.cxx index a1994178c8d0..f6fffc063541 100644 --- a/binaryurp/source/binaryany.cxx +++ b/binaryurp/source/binaryany.cxx @@ -70,10 +70,10 @@ css::uno::TypeDescription BinaryAny::getType() const throw () { void * BinaryAny::getValue(css::uno::TypeDescription const & type) const throw () { + assert(type.is()); assert( - type.is() && - (type.get()->eTypeClass == typelib_TypeClass_ANY || - type.equals(css::uno::TypeDescription(data_.pType)))); + type.get()->eTypeClass == typelib_TypeClass_ANY || + type.equals(css::uno::TypeDescription(data_.pType))); return type.get()->eTypeClass == typelib_TypeClass_ANY ? &data_ : data_.pData; } -- cgit