Kaydet (Commit) 28b86ca7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Replaced remaining OSL_ASSERT in configmgr.

üst ce1f52d6
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#include "sal/config.h" #include "sal/config.h"
#include <cassert>
#include "com/sun/star/beans/XPropertiesChangeListener.hpp" #include "com/sun/star/beans/XPropertiesChangeListener.hpp"
#include "com/sun/star/beans/XPropertyChangeListener.hpp" #include "com/sun/star/beans/XPropertyChangeListener.hpp"
#include "com/sun/star/container/XContainerListener.hpp" #include "com/sun/star/container/XContainerListener.hpp"
...@@ -40,7 +42,6 @@ ...@@ -40,7 +42,6 @@
#include "com/sun/star/uno/XInterface.hpp" #include "com/sun/star/uno/XInterface.hpp"
#include "com/sun/star/util/XChangesListener.hpp" #include "com/sun/star/util/XChangesListener.hpp"
#include "cppuhelper/exc_hlp.hxx" #include "cppuhelper/exc_hlp.hxx"
#include "osl/diagnose.hxx"
#include "rtl/string.h" #include "rtl/string.h"
#include "rtl/ustrbuf.hxx" #include "rtl/ustrbuf.hxx"
#include "rtl/ustring.h" #include "rtl/ustring.h"
...@@ -217,7 +218,7 @@ Broadcaster::DisposeNotification::DisposeNotification( ...@@ -217,7 +218,7 @@ Broadcaster::DisposeNotification::DisposeNotification(
css::lang::EventObject const & theEvent): css::lang::EventObject const & theEvent):
listener(theListener), event(theEvent) listener(theListener), event(theEvent)
{ {
OSL_ASSERT(theListener.is()); assert(theListener.is());
} }
Broadcaster::ContainerNotification::ContainerNotification( Broadcaster::ContainerNotification::ContainerNotification(
...@@ -226,7 +227,7 @@ Broadcaster::ContainerNotification::ContainerNotification( ...@@ -226,7 +227,7 @@ Broadcaster::ContainerNotification::ContainerNotification(
css::container::ContainerEvent const & theEvent): css::container::ContainerEvent const & theEvent):
listener(theListener), event(theEvent) listener(theListener), event(theEvent)
{ {
OSL_ASSERT(theListener.is()); assert(theListener.is());
} }
Broadcaster::PropertyChangeNotification::PropertyChangeNotification( Broadcaster::PropertyChangeNotification::PropertyChangeNotification(
...@@ -235,7 +236,7 @@ Broadcaster::PropertyChangeNotification::PropertyChangeNotification( ...@@ -235,7 +236,7 @@ Broadcaster::PropertyChangeNotification::PropertyChangeNotification(
css::beans::PropertyChangeEvent const & theEvent): css::beans::PropertyChangeEvent const & theEvent):
listener(theListener), event(theEvent) listener(theListener), event(theEvent)
{ {
OSL_ASSERT(theListener.is()); assert(theListener.is());
} }
Broadcaster::PropertiesChangeNotification::PropertiesChangeNotification( Broadcaster::PropertiesChangeNotification::PropertiesChangeNotification(
...@@ -244,7 +245,7 @@ Broadcaster::PropertiesChangeNotification::PropertiesChangeNotification( ...@@ -244,7 +245,7 @@ Broadcaster::PropertiesChangeNotification::PropertiesChangeNotification(
css::uno::Sequence< css::beans::PropertyChangeEvent > const & theEvent): css::uno::Sequence< css::beans::PropertyChangeEvent > const & theEvent):
listener(theListener), event(theEvent) listener(theListener), event(theEvent)
{ {
OSL_ASSERT(theListener.is()); assert(theListener.is());
} }
Broadcaster::ChangesNotification::ChangesNotification( Broadcaster::ChangesNotification::ChangesNotification(
...@@ -252,7 +253,7 @@ Broadcaster::ChangesNotification::ChangesNotification( ...@@ -252,7 +253,7 @@ Broadcaster::ChangesNotification::ChangesNotification(
css::util::ChangesEvent const & theEvent): css::util::ChangesEvent const & theEvent):
listener(theListener), event(theEvent) listener(theListener), event(theEvent)
{ {
OSL_ASSERT(theListener.is()); assert(theListener.is());
} }
} }
......
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#include "sal/config.h" #include "sal/config.h"
#include <cassert>
#include "rtl/ustring.hxx" #include "rtl/ustring.hxx"
#include "modifications.hxx" #include "modifications.hxx"
...@@ -60,7 +62,7 @@ void Modifications::add(Path const & path) { ...@@ -60,7 +62,7 @@ void Modifications::add(Path const & path) {
} }
void Modifications::remove(Path const & path) { void Modifications::remove(Path const & path) {
OSL_ASSERT(!path.empty()); assert(!path.empty());
Node * p = &root_; Node * p = &root_;
for (Path::const_iterator i(path.begin());;) { for (Path::const_iterator i(path.begin());;) {
Node::Children::iterator j(p->children.find(*i)); Node::Children::iterator j(p->children.find(*i));
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "sal/config.h" #include "sal/config.h"
#include <cassert>
#include <set> #include <set>
#include "boost/noncopyable.hpp" #include "boost/noncopyable.hpp"
...@@ -75,7 +76,7 @@ public: ...@@ -75,7 +76,7 @@ public:
Service(css::uno::Reference< css::uno::XComponentContext > const context): Service(css::uno::Reference< css::uno::XComponentContext > const context):
context_(context) context_(context)
{ {
OSL_ASSERT(context.is()); assert(context.is());
lock_ = lock(); lock_ = lock();
} }
......
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
#include "sal/config.h" #include "sal/config.h"
#include <cassert>
#include <climits> #include <climits>
#include "com/sun/star/uno/Reference.hxx" #include "com/sun/star/uno/Reference.hxx"
#include "com/sun/star/uno/RuntimeException.hpp" #include "com/sun/star/uno/RuntimeException.hpp"
#include "com/sun/star/uno/XInterface.hpp" #include "com/sun/star/uno/XInterface.hpp"
#include "osl/diagnose.hxx"
#include "rtl/string.h" #include "rtl/string.h"
#include "rtl/ustring.h" #include "rtl/ustring.h"
#include "rtl/ustring.hxx" #include "rtl/ustring.hxx"
...@@ -69,7 +69,7 @@ bool XcdParser::startElement( ...@@ -69,7 +69,7 @@ bool XcdParser::startElement(
xmlreader::XmlReader & reader, int nsId, xmlreader::Span const & name) xmlreader::XmlReader & reader, int nsId, xmlreader::Span const & name)
{ {
if (nestedParser_.is()) { if (nestedParser_.is()) {
OSL_ASSERT(nesting_ != LONG_MAX); assert(nesting_ != LONG_MAX);
++nesting_; ++nesting_;
return nestedParser_->startElement(reader, nsId, name); return nestedParser_->startElement(reader, nsId, name);
} }
...@@ -145,7 +145,7 @@ bool XcdParser::startElement( ...@@ -145,7 +145,7 @@ bool XcdParser::startElement(
} }
break; break;
default: // STATE_DEPENDENCY default: // STATE_DEPENDENCY
OSL_ASSERT(false); // this cannot happen assert(false); // this cannot happen
break; break;
} }
throw css::uno::RuntimeException( throw css::uno::RuntimeException(
...@@ -170,7 +170,7 @@ void XcdParser::endElement(xmlreader::XmlReader const & reader) { ...@@ -170,7 +170,7 @@ void XcdParser::endElement(xmlreader::XmlReader const & reader) {
case STATE_COMPONENTS: case STATE_COMPONENTS:
break; break;
default: default:
OSL_ASSERT(false); // this cannot happen assert(false); // this cannot happen
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment