diff options
Diffstat (limited to 'configmgr/source/node.cxx')
-rw-r--r-- | configmgr/source/node.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/configmgr/source/node.cxx b/configmgr/source/node.cxx index 8141c2858f9d..892cdaa622fd 100644 --- a/configmgr/source/node.cxx +++ b/configmgr/source/node.cxx @@ -28,10 +28,11 @@ #include "sal/config.h" +#include <cassert> + #include "com/sun/star/uno/Reference.hxx" #include "com/sun/star/uno/RuntimeException.hpp" #include "com/sun/star/uno/XInterface.hpp" -#include "osl/diagnose.h" #include "rtl/ref.hxx" #include "rtl/ustring.h" #include "rtl/ustring.hxx" @@ -49,7 +50,7 @@ namespace css = com::sun::star; } NodeMap & Node::getMembers() { - OSL_ASSERT(false); + assert(false); throw css::uno::RuntimeException( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("this cannot happen")), css::uno::Reference< css::uno::XInterface >()); @@ -61,7 +62,7 @@ rtl::OUString Node::getTemplateName() const { void Node::setMandatory(int layer) { (void) layer; // avoid warnings - OSL_ASSERT(layer == Data::NO_LAYER); + assert(layer == Data::NO_LAYER); } int Node::getMandatory() const { @@ -69,7 +70,7 @@ int Node::getMandatory() const { } void Node::setLayer(int layer) { - OSL_ASSERT(layer >= layer_); + assert(layer >= layer_); layer_ = layer; } |