]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Remove inappropriate const qualifiers
authorCheng-Ling Lai <jamesljlster@gmail.com>
Thu, 22 Jan 2026 09:19:36 +0000 (17:19 +0800)
committerCheng-Ling Lai <jamesljlster@gmail.com>
Fri, 23 Jan 2026 02:00:37 +0000 (10:00 +0800)
client/snbk/TheBigThing.cc
client/snbk/TheBigThing.h

index 31a597ac6658526db0f05f60751fb544e60cbd4e..fe42696fb64bc9628ac7dc7a1ab53542cda5ff41 100644 (file)
@@ -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<const TheBigThing::CopySpec, const TheBigThing::CopySpec>
+    pair<TheBigThing::CopySpec, TheBigThing::CopySpec>
     TheBigThing::make_copy_specs(const BackupConfig& backup_config,
                                  const TheBigThings& the_big_things,
                                  CopyMode copy_mode) const
index bcda7cbab51b9a57237231ebf4b175997631e0b3..338bc6237ef8ee20f6e033739429bbd63a127723 100644 (file)
@@ -110,9 +110,9 @@ namespace snapper
         * the specified `copy_mode`. The function returns a pair containing the source
         * and destination copy specifications.
         */
-       const pair<const CopySpec, const CopySpec>
-       make_copy_specs(const BackupConfig& backup_config,
-                       const TheBigThings& the_big_things, CopyMode copy_mode) const;
+       pair<CopySpec, CopySpec> 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<CopySpec, CopySpec>& copy_specs);