aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@verizonmedia.com>2020-03-05 09:55:52 +0000
committerTor Brede Vekterli <vekterli@verizonmedia.com>2020-03-05 09:55:52 +0000
commit5f1e0af371ae751c786f965cab6154c2a4167c8b (patch)
treee108a01b2ebe7e680b544c925d42257453278190 /vespalib
parente1c76fc4890d4531911bb616bf580949ca4486af (diff)
Construct instance as const
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/regex/regex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/regex/regex.cpp b/vespalib/src/vespa/vespalib/regex/regex.cpp
index 81677f1b9dd..3229365b753 100644
--- a/vespalib/src/vespa/vespalib/regex/regex.cpp
+++ b/vespalib/src/vespa/vespalib/regex/regex.cpp
@@ -58,7 +58,7 @@ Regex Regex::from_pattern(std::string_view pattern, uint32_t opt_mask) {
if ((opt_mask & Options::IgnoreCase) != 0) {
opts.set_case_sensitive(false);
}
- return Regex(std::make_shared<Impl>(pattern, opts));
+ return Regex(std::make_shared<const Impl>(pattern, opts));
}
bool Regex::parsed_ok() const noexcept {