Changed dyanmic_cast<> to static_cast<> as code is written in a way that the type is always known.
This commit is contained in:
parent
79c6ac38df
commit
0696e49f2d
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user