Changed dyanmic_cast<> to static_cast<> as code is written in a way that the type is always known.

This commit is contained in:
Robert Osfield 2016-06-17 08:53:38 +01:00
parent 79c6ac38df
commit 0696e49f2d

View File

@ -40,7 +40,9 @@ struct NullStream : public std::ostream
public:
NullStream():
std::ostream(new NullStreamBuffer)
{ _buffer = dynamic_cast<NullStreamBuffer *>(rdbuf()); }
{
_buffer = static_cast<NullStreamBuffer *>(rdbuf());
}
~NullStream()
{
@ -96,7 +98,9 @@ struct NotifyStream : public std::ostream
public:
NotifyStream():
std::ostream(new NotifyStreamBuffer)
{ _buffer = dynamic_cast<NotifyStreamBuffer *>(rdbuf()); }
{
_buffer = static_cast<NotifyStreamBuffer *>(rdbuf());
}
void setCurrentSeverity(osg::NotifySeverity severity)
{