From: Arvin Schnell Date: Fri, 14 Jan 2011 16:27:36 +0000 (+0100) Subject: - tiny simplification X-Git-Tag: v0.1.3~540 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=393896777b864bbaf6d5478f1f5b85bdcdc8678d;p=thirdparty%2Fsnapper.git - tiny simplification --- diff --git a/snapper/Snapper.cc b/snapper/Snapper.cc index 5ab3d981..6dbdde46 100644 --- a/snapper/Snapper.cc +++ b/snapper/Snapper.cc @@ -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)); } diff --git a/snapper/Snapper.h b/snapper/Snapper.h index 73eb7ac5..6b947d90 100644 --- a/snapper/Snapper.h +++ b/snapper/Snapper.h @@ -89,8 +89,6 @@ namespace snapper vector::iterator find(const string& name); vector::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 files; + friend void append_helper(const string& name, unsigned int status); + }; extern Filelist filelist;