diff options
| author | 2020-05-11 14:25:32 +0100 | |
|---|---|---|
| committer | 2020-05-11 14:25:32 +0100 | |
| commit | 6c24f71abf0f38b1d458813b2255ebab7814bad8 (patch) | |
| tree | 810cde5a813f567751536bcbcdad5aa565b79ae5 /src/modules/m_regex_stdlib.cpp | |
| parent | Switch to the C++17 fallthrough attribute. (diff) | |
Fix warnings on GCC 9.
Diffstat (limited to 'src/modules/m_regex_stdlib.cpp')
| -rw-r--r-- | src/modules/m_regex_stdlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_regex_stdlib.cpp b/src/modules/m_regex_stdlib.cpp index 08ec030b9..6f5df3d6e 100644 --- a/src/modules/m_regex_stdlib.cpp +++ b/src/modules/m_regex_stdlib.cpp @@ -34,7 +34,7 @@ class StdRegex : public Regex try{ regexcl.assign(rx, fltype | std::regex::optimize); } - catch(std::regex_error rxerr) + catch(const std::regex_error& rxerr) { throw RegexException(rx, rxerr.what()); } |
