summaryrefslogtreecommitdiff
path: root/examples/regex/main.cc
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2013-07-04 10:27:35 +0200
committerMurray Cumming <murrayc@murrayc.com>2015-01-21 08:32:09 +0100
commitfc70ef3e57d1953679dd9fb71feffd4f8c49193b (patch)
tree482ca7b441773fb343c4cf05e6e774c7900aaacf /examples/regex/main.cc
parente4677407be25f1fa7814be41e012d1273efa993c (diff)
downloadglibmm-c++11v2.tar.gz
C++11: examples: more use of auto.c++11v2
Diffstat (limited to 'examples/regex/main.cc')
-rw-r--r--examples/regex/main.cc2
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")