From 0696e49f2da8110b53ddddb1a34de90523d07951 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 17 Jun 2016 08:53:38 +0100 Subject: [PATCH] Changed dyanmic_cast<> to static_cast<> as code is written in a way that the type is always known. --- src/osg/Notify.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) {