Skip to content

Commit

Permalink
Add const in multiple places (#9097)
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-derevenetz authored Sep 10, 2024
1 parent 64094a4 commit 1146cc4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/tools/82m2wav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace
int main( int argc, char ** argv )
{
if ( argc < 3 ) {
std::string baseName = System::GetBasename( argv[0] );
const std::string baseName = System::GetBasename( argv[0] );

std::cerr << baseName << " converts the specified 82M file(s) to WAV format." << std::endl
<< "Syntax: " << baseName << " dst_dir input_file.82m ..." << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/bin2txt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace
int main( int argc, char ** argv )
{
if ( argc < 3 ) {
std::string baseName = System::GetBasename( argv[0] );
const std::string baseName = System::GetBasename( argv[0] );

std::cerr << baseName << " extracts various data from monster animation files." << std::endl
<< "Syntax: " << baseName << " dst_dir input_file.bin ..." << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/extractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace
int main( int argc, char ** argv )
{
if ( argc < 3 ) {
std::string baseName = System::GetBasename( argv[0] );
const std::string baseName = System::GetBasename( argv[0] );

std::cerr << baseName << " extracts the contents of the specified AGG file(s)." << std::endl
<< "Syntax: " << baseName << " dst_dir input_file.agg ..." << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/h2dmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace

void printUsage( char ** argv )
{
std::string baseName = System::GetBasename( argv[0] );
const std::string baseName = System::GetBasename( argv[0] );

std::cerr << baseName << " manages the contents of the specified H2D file(s)." << std::endl
<< "Syntax: " << baseName << " extract dst_dir palette_file.pal input_file.h2d ..." << std::endl
Expand Down
2 changes: 1 addition & 1 deletion src/tools/icn2img.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace
int main( int argc, char ** argv )
{
if ( argc < 4 ) {
std::string baseName = System::GetBasename( argv[0] );
const std::string baseName = System::GetBasename( argv[0] );

std::cerr << baseName << " extracts sprites in BMP or PNG format (if supported) and their offsets from the specified ICN file(s) using the specified palette."
<< std::endl
Expand Down
4 changes: 2 additions & 2 deletions src/tools/pal2img.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* fheroes2: https://github.com/ihhub/fheroes2 *
* Copyright (C) 2023 *
* Copyright (C) 2023 - 2024 *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
Expand Down Expand Up @@ -39,7 +39,7 @@ namespace
int main( int argc, char ** argv )
{
if ( argc != 3 ) {
std::string baseName = System::GetBasename( argv[0] );
const std::string baseName = System::GetBasename( argv[0] );

std::cerr << baseName << " generates an image with colors based on a provided palette file." << std::endl
<< "Syntax: " << baseName << " palette_file.pal output.bmp|output.png" << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions src/tools/til2img.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/***************************************************************************
* fheroes2: https://github.com/ihhub/fheroes2 *
* Copyright (C) 2022 - 2023 *
* Copyright (C) 2022 - 2024 *
* *
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 *
* Copyright (C) 2009 by Andrey Afletdinov <fheroes2@gmail.com> *
Expand Down Expand Up @@ -47,7 +47,7 @@ namespace
int main( int argc, char ** argv )
{
if ( argc < 4 ) {
std::string baseName = System::GetBasename( argv[0] );
const std::string baseName = System::GetBasename( argv[0] );

std::cerr << baseName << " extracts sprites in BMP or PNG format (if supported) from the specified TIL file(s) using the specified palette." << std::endl
<< "Syntax: " << baseName << " dst_dir palette_file.pal input_file.til ..." << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/xmi2midi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
int main( int argc, char ** argv )
{
if ( argc < 3 ) {
std::string baseName = System::GetBasename( argv[0] );
const std::string baseName = System::GetBasename( argv[0] );

std::cerr << baseName << " converts the specified XMI file(s) to MIDI format." << std::endl
<< "Syntax: " << baseName << " dst_dir input_file.xmi ..." << std::endl;
Expand Down

0 comments on commit 1146cc4

Please sign in to comment.