diff options
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; |