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:
|
public:
|
||||||
NullStream():
|
NullStream():
|
||||||
std::ostream(new NullStreamBuffer)
|
std::ostream(new NullStreamBuffer)
|
||||||
{ _buffer = dynamic_cast<NullStreamBuffer *>(rdbuf()); }
|
{
|
||||||
|
_buffer = static_cast<NullStreamBuffer *>(rdbuf());
|
||||||
|
}
|
||||||
|
|
||||||
~NullStream()
|
~NullStream()
|
||||||
{
|
{
|
||||||
@ -96,7 +98,9 @@ struct NotifyStream : public std::ostream
|
|||||||
public:
|
public:
|
||||||
NotifyStream():
|
NotifyStream():
|
||||||
std::ostream(new NotifyStreamBuffer)
|
std::ostream(new NotifyStreamBuffer)
|
||||||
{ _buffer = dynamic_cast<NotifyStreamBuffer *>(rdbuf()); }
|
{
|
||||||
|
_buffer = static_cast<NotifyStreamBuffer *>(rdbuf());
|
||||||
|
}
|
||||||
|
|
||||||
void setCurrentSeverity(osg::NotifySeverity severity)
|
void setCurrentSeverity(osg::NotifySeverity severity)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user