]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- tiny simplification
authorArvin Schnell <aschnell@suse.de>
Fri, 14 Jan 2011 16:27:36 +0000 (17:27 +0100)
committerArvin Schnell <aschnell@suse.de>
Fri, 14 Jan 2011 16:27:36 +0000 (17:27 +0100)
snapper/Snapper.cc
snapper/Snapper.h

index 5ab3d98126c0f95e80a05bb71af4c3dbd6a1a1dd..6dbdde46ecefbac89f4d275290687630ee249f48 100644 (file)
@@ -309,17 +309,10 @@ namespace snapper
     }
 
 
-    void
-    Filelist::append(const string& name, unsigned int status)
-    {
-       files.push_back(File(name, status));
-    }
-
-
     void
     append_helper(const string& name, unsigned int status)
     {
-       filelist.append(name, status);
+       filelist.files.push_back(File(name, status));
     }
 
 
index 73eb7ac519541c3faae7e5c6fa0dd390ca1addf4..6b947d902eb51af59be4343ebbed5319cb2f301e 100644 (file)
@@ -89,8 +89,6 @@ namespace snapper
        vector<File>::iterator find(const string& name);
        vector<File>::const_iterator find(const string& name) const;
 
-       void append(const string& name, unsigned int status); // should be private
-
     private:
 
        void initialize();
@@ -103,6 +101,8 @@ namespace snapper
 
        vector<File> files;
 
+       friend void append_helper(const string& name, unsigned int status);
+
     };
 
     extern Filelist filelist;