diff options
author | Murray Cumming <murrayc@murrayc.com> | 2013-07-04 10:27:35 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2015-06-30 10:15:28 +0200 |
commit | e3cf2a503132aaaddd69f2a149d3e60344b9df0a (patch) | |
tree | d746410b7e1aa54d4a768ca03057113454b2c0cd /examples/markup/parser.cc | |
parent | b6aa4974db0d42c1070c9e2600d5198c26cec522 (diff) | |
download | glibmm-c++11v3.tar.gz |
C++11: examples: more use of auto.c++11v3
Diffstat (limited to 'examples/markup/parser.cc')
-rw-r--r-- | examples/markup/parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/markup/parser.cc b/examples/markup/parser.cc index 54bac451..fafcc2f5 100644 --- a/examples/markup/parser.cc +++ b/examples/markup/parser.cc @@ -26,7 +26,7 @@ namespace void file_get_contents(const std::string& filename, Glib::ustring& contents) { - const Glib::RefPtr<Glib::IOChannel> channel = Glib::IOChannel::create_from_file(filename, "r"); + const auto channel = Glib::IOChannel::create_from_file(filename, "r"); channel->read_to_end(contents); } |