summaryrefslogtreecommitdiff
path: root/src/BRegex.cc
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2013-01-22 00:32:13 -0800
committerPixel <pixel@nobis-crew.org>2013-01-22 00:32:13 -0800
commit107d87dc983f34e4ff23a4db188baa650ac51f98 (patch)
tree9721dc97d9c2777ab35c3d22909a8fc8e5df92eb /src/BRegex.cc
parent6f280f3680e9fad24e00dd63a55577c5409945b3 (diff)
Cleaning up some cruft.
Diffstat (limited to 'src/BRegex.cc')
-rw-r--r--src/BRegex.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/BRegex.cc b/src/BRegex.cc
index c235de6..1ada2f1 100644
--- a/src/BRegex.cc
+++ b/src/BRegex.cc
@@ -1,6 +1,6 @@
#include "BRegex.h"
-Balau::Regex::Regex(const char * regex, bool icase) throw (GeneralException) {
+Balau::Regex::Regex(const char * regex, bool icase) throw (GeneralException) : m_regexStr(regex), m_icase(icase) {
int r = regcomp(&m_regex, regex, REG_EXTENDED | (icase ? REG_ICASE : 0));
if (r)
throw GeneralException(getError(r));
@@ -30,10 +30,6 @@ Balau::Regex::Captures Balau::Regex::match(const char * str) const throw (Genera
return ret;
}
-Balau::Regex::~Regex() {
- regfree(&m_regex);
-}
-
Balau::String Balau::Regex::getError(int err) const {
size_t s;
char * t;