From 9329e059b2e560cb3222cee8f8fcf0906de2cf73 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 25 Nov 2011 00:04:05 -0800 Subject: Consts are good. --- includes/BRegex.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'includes/BRegex.h') diff --git a/includes/BRegex.h b/includes/BRegex.h index d7957bd..4a2f207 100644 --- a/includes/BRegex.h +++ b/includes/BRegex.h @@ -13,16 +13,16 @@ class Regex { typedef std::vector Captures; Regex(const char * regex, bool icase = false) throw (GeneralException); ~Regex(); - Captures match(const char * str) throw (GeneralException); + Captures match(const char * str) const throw (GeneralException); private: - String getError(int err); + String getError(int err) const; regex_t m_regex; }; class Regexes { public: - static Regex any; - static Regex empty; + static const Regex any; + static const Regex empty; }; }; -- cgit v1.2.3