Programming style improvement: following Cppcheck suggestions.

This commit is contained in:
brunoherbelin
2021-04-04 13:13:06 +02:00
parent b4627a1613
commit f443720319
51 changed files with 269 additions and 271 deletions

View File

@@ -134,7 +134,7 @@ void Pattern::open( uint pattern, glm::ivec2 res )
PatternSource::PatternSource() : StreamSource()
{
// create stream
stream_ = (Stream *) new Pattern;
stream_ = static_cast<Stream *>( new Pattern );
// set symbol
symbol_ = new Symbol(Symbol::PATTERN, glm::vec3(0.75f, 0.75f, 0.01f));