From 9ec94f25aa7a721fc6158645677a221bb7fa0fc1 Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 1 Jan 2021 18:31:20 +0300 Subject: [PATCH] fix [-Wignored-qualifiers] --- contrib/brushexport/export.cpp | 4 ++-- contrib/shaderplug/shaderplug.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/brushexport/export.cpp b/contrib/brushexport/export.cpp index 369a007e..46764868 100644 --- a/contrib/brushexport/export.cpp +++ b/contrib/brushexport/export.cpp @@ -77,7 +77,7 @@ void ExportData::BeginBrush( Brush& b ){ current = &groups.back(); StringOutputStream str( 256 ); - str << "Brush" << (const unsigned int)groups.size(); + str << "Brush" << (unsigned int)groups.size(); current->name = str.c_str(); } } @@ -312,7 +312,7 @@ bool ExportDataAsWavefront::WriteToFile( const std::string& path, collapsemode m } outMtl << "# Wavefront material file exported with NetRadiants brushexport plugin.\n"; - outMtl << "# Material Count: " << (const Unsigned)materials.size() << "\n\n"; + outMtl << "# Material Count: " << (Unsigned)materials.size() << "\n\n"; for ( const auto& material : materials ) { const std::string& str = material.first; diff --git a/contrib/shaderplug/shaderplug.cpp b/contrib/shaderplug/shaderplug.cpp index 0cf2cbd0..89109958 100644 --- a/contrib/shaderplug/shaderplug.cpp +++ b/contrib/shaderplug/shaderplug.cpp @@ -136,21 +136,21 @@ void GetAllShaders(){ void GetArchiveList(){ GlobalFileSystem().forEachArchive( LoadArchiveFileCaller() ); - globalOutputStream() << "Shaderplug: " << (const Unsigned)Shaderplug::archives.size() << " archives found.\n"; + globalOutputStream() << "Shaderplug: " << (Unsigned)Shaderplug::archives.size() << " archives found.\n"; } void CreateTagFile(){ const char* shader_type = GlobalRadiant().getGameDescriptionKeyValue( "shaders" ); GetAllShaders(); - globalOutputStream() << "Shaderplug: " << (const Unsigned)shaders.size() << " shaders found.\n"; + globalOutputStream() << "Shaderplug: " << (Unsigned)shaders.size() << " shaders found.\n"; if ( string_equal( shader_type, "quake3" ) ) { GetTextures( "jpg" ); GetTextures( "tga" ); GetTextures( "png" ); - globalOutputStream() << "Shaderplug: " << (const Unsigned)textures.size() << " textures found.\n"; + globalOutputStream() << "Shaderplug: " << (Unsigned)textures.size() << " textures found.\n"; } if ( shaders.size() || textures.size() != 0 ) {