$NetBSD: patch-src_libdar_mask__list.hpp,v 1.2 2014/01/20 19:29:34 joerg Exp $ --- src/libdar/mask_list.hpp.orig 2012-11-30 20:51:11.000000000 +0000 +++ src/libdar/mask_list.hpp @@ -70,46 +70,10 @@ namespace libdar private: - // we need to change to lexicographical order relationship for the '/' character be the most lower of all. This way - // the first entry listed from a set a file sharing the same first characters will be the one corresponding - // to the directory with this common prefix. - - class my_char - { - public: - my_char() { val = 0; }; - my_char(const char x) : val(x) {}; - bool operator < (const my_char & x) const - { - if(val == '/') - if(x.val == '/') - return false; - else - return true; - else - if(x.val == '/') - return false; - else - return val < x.val; - }; - - operator char() const - { - return val; - }; - - private: - char val; - }; - - std::vector > contenu; + std::vector contenu; U_I taille; bool case_s; bool including; // mask is used for including files (not for excluding files) - - static std::list > convert_list_string_char(const std::list & src); - static std::basic_string convert_string_char(const std::string & src); - static std::string convert_string_my_char(const std::basic_string & src); }; /// @}