diff options
Diffstat (limited to 'examples/regex')
-rw-r--r-- | examples/regex/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/regex/main.cc b/examples/regex/main.cc index cc128ab2..ed6ac567 100644 --- a/examples/regex/main.cc +++ b/examples/regex/main.cc @@ -24,7 +24,7 @@ int main(int, char**) Glib::init(); /* Reusing one regex pattern: */ - Glib::RefPtr<Glib::Regex> regex = Glib::Regex::create("(a)?(b)"); + const auto regex = Glib::Regex::create("(a)?(b)"); std::cout << "Pattern=" << regex->get_pattern() << ", with string=abcd, result=" << std::boolalpha << regex->match("abcd") |