From: Cheng-Ling Lai Date: Thu, 22 Jan 2026 09:19:36 +0000 (+0800) Subject: Remove inappropriate const qualifiers X-Git-Tag: v0.13.1~49^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53e93a4cae9b1cb65dd38c30b8fce5734d61532e;p=thirdparty%2Fsnapper.git Remove inappropriate const qualifiers --- diff --git a/client/snbk/TheBigThing.cc b/client/snbk/TheBigThing.cc index 31a597ac..fe42696f 100644 --- a/client/snbk/TheBigThing.cc +++ b/client/snbk/TheBigThing.cc @@ -112,14 +112,12 @@ namespace snapper return nodes; } - const string source_snapshot_dir(const BackupConfig& backup_config, - unsigned int num) + string source_snapshot_dir(const BackupConfig& backup_config, unsigned int num) { return backup_config.source_path + "/" SNAPSHOTS_NAME "/" + to_string(num); } - const string target_snapshot_dir(const BackupConfig& backup_config, - unsigned int num) + string target_snapshot_dir(const BackupConfig& backup_config, unsigned int num) { return backup_config.target_path + "/" + to_string(num); } @@ -349,7 +347,7 @@ namespace snapper target_state = TargetState::MISSING; } - const pair + pair TheBigThing::make_copy_specs(const BackupConfig& backup_config, const TheBigThings& the_big_things, CopyMode copy_mode) const diff --git a/client/snbk/TheBigThing.h b/client/snbk/TheBigThing.h index bcda7cba..338bc623 100644 --- a/client/snbk/TheBigThing.h +++ b/client/snbk/TheBigThing.h @@ -110,9 +110,9 @@ namespace snapper * the specified `copy_mode`. The function returns a pair containing the source * and destination copy specifications. */ - const pair - make_copy_specs(const BackupConfig& backup_config, - const TheBigThings& the_big_things, CopyMode copy_mode) const; + pair make_copy_specs(const BackupConfig& backup_config, + const TheBigThings& the_big_things, + CopyMode copy_mode) const; void copy(const BackupConfig& backup_config, TheBigThings& the_big_things, const pair& copy_specs);