diff --git a/src/osg/Notify.cpp b/src/osg/Notify.cpp index b6f68aece..02d1f8527 100644 --- a/src/osg/Notify.cpp +++ b/src/osg/Notify.cpp @@ -40,7 +40,9 @@ struct NullStream : public std::ostream public: NullStream(): std::ostream(new NullStreamBuffer) - { _buffer = dynamic_cast(rdbuf()); } + { + _buffer = static_cast(rdbuf()); + } ~NullStream() { @@ -96,7 +98,9 @@ struct NotifyStream : public std::ostream public: NotifyStream(): std::ostream(new NotifyStreamBuffer) - { _buffer = dynamic_cast(rdbuf()); } + { + _buffer = static_cast(rdbuf()); + } void setCurrentSeverity(osg::NotifySeverity severity) {