[yast-commit] r56506 - /trunk/storage/libstorage/src/StorageTypes.h
Author: aschnell Date: Tue Mar 31 15:58:09 2009 New Revision: 56506 URL: http://svn.opensuse.org/viewcvs/yast?rev=56506&view=rev Log: - added const Modified: trunk/storage/libstorage/src/StorageTypes.h Modified: trunk/storage/libstorage/src/StorageTypes.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/StorageTypes.h?rev=56506&r1=56505&r2=56506&view=diff ============================================================================== --- trunk/storage/libstorage/src/StorageTypes.h (original) +++ trunk/storage/libstorage/src/StorageTypes.h Tue Mar 31 15:58:09 2009 @@ -159,21 +159,21 @@ struct regex_matches { regex_matches(const Regex& t) : val(t) {} - bool operator()(const string& s) { return val.match(s); } + bool operator()(const string& s) const { return val.match(s); } const Regex& val; }; struct string_starts_with { string_starts_with(const string& t) : val(t) {} - bool operator()(const string& s) { return boost::starts_with(s, val); } + bool operator()(const string& s) const { return boost::starts_with(s, val); } const string& val; }; struct string_contains { string_contains(const string& t) : val(t) {} - bool operator()(const string& s) { return boost::contains(s, val); } + bool operator()(const string& s) const { return boost::contains(s, val); } const string& val; }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org