summaryrefslogtreecommitdiff
path: root/lib/Regex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Regex.cc')
-rw-r--r--lib/Regex.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Regex.cc b/lib/Regex.cc
index 013951a..41f303c 100644
--- a/lib/Regex.cc
+++ b/lib/Regex.cc
@@ -9,9 +9,9 @@ Regex::Regex(const String & regex, int acflags, int aeflags) throw (GeneralExcep
int r;
if ((r = regcomp(&preg, pattern, cflags | REG_NOSUB))) {
- cerr << _("Error in regcomp:");
+ std::cerr << _("Error in regcomp:");
regerror(r, &preg, t, sizeof(t));
- cerr << t << endl;
+ std::cerr << t << std::endl;
throw GeneralException(String(_("Regex \"")) + regex + _("\" failed to compile: ") + t + "\n");
}
}
@@ -20,9 +20,9 @@ Regex::Regex(const Regex & regex) : pattern(Base::strdup(pattern)) {
int r;
if ((r = regcomp(&preg, pattern, cflags | REG_NOSUB))) {
- cerr << "Error in regcomp:";
+ std::cerr << "Error in regcomp:";
regerror(r, &preg, t, sizeof(t));
- cerr << t << endl;
+ std::cerr << t << std::endl;
throw GeneralException(String(_("Regex \"")) + pattern + _("\" failed to compile: ") + t + "\n");
}
}