fix [-Wignored-qualifiers]

This commit is contained in:
Garux 2021-01-01 18:31:20 +03:00
parent ba1a1b64f6
commit 9ec94f25aa
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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 ) {