summaryrefslogtreecommitdiff
path: root/examples/markup/parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/markup/parser.cc')
-rw-r--r--examples/markup/parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/markup/parser.cc b/examples/markup/parser.cc
index d3538bee..27c7cc14 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);
}