diff options
author | Pixel <pixel@nobis-crew.org> | 2013-01-22 00:32:13 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2013-01-22 00:32:13 -0800 |
commit | 107d87dc983f34e4ff23a4db188baa650ac51f98 (patch) | |
tree | 9721dc97d9c2777ab35c3d22909a8fc8e5df92eb /src | |
parent | 6f280f3680e9fad24e00dd63a55577c5409945b3 (diff) |
Cleaning up some cruft.
Diffstat (limited to 'src')
-rw-r--r-- | src/Async.cc | 2 | ||||
-rw-r--r-- | src/BRegex.cc | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/Async.cc b/src/Async.cc index afc1879..09465d3 100644 --- a/src/Async.cc +++ b/src/Async.cc @@ -67,7 +67,7 @@ void Balau::AsyncManager::startOneFinisher() { void Balau::AsyncManager::joinStoppedFinishers() { for (auto i = m_workers.begin(); i != m_workers.end(); i++) { AsyncFinishWorker * worker = *i; - if (!worker->m_stopped) + if (!worker->stopped()) continue; Printer::elog(E_ASYNC, "Joining stopped worker at %p", worker); m_numFinishers--; 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; |