summaryrefslogtreecommitdiff
path: root/tests/giomm_ioerror
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2015-07-15 14:22:59 +0200
committerMurray Cumming <murrayc@murrayc.com>2015-07-15 14:22:59 +0200
commitb5e068e288a0e9d031c725d5c9423d63daef6a44 (patch)
tree115f6415d22600a0f1d3df8c5e6d8ce2ff80d1b4 /tests/giomm_ioerror
parentac8300539d154e6fb4d3663ed331971887df029d (diff)
downloadglibmm-b5e068e288a0e9d031c725d5c9423d63daef6a44.tar.gz
C++11: examples/tests: More use of auto.
Diffstat (limited to 'tests/giomm_ioerror')
-rw-r--r--tests/giomm_ioerror/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/giomm_ioerror/main.cc b/tests/giomm_ioerror/main.cc
index ae51ec21..797ed22e 100644
--- a/tests/giomm_ioerror/main.cc
+++ b/tests/giomm_ioerror/main.cc
@@ -34,14 +34,14 @@ int main(int, char**)
try
{
- Glib::RefPtr<Gio::File> file = Gio::File::create_for_path(TEST_FILE);
+ auto file = Gio::File::create_for_path(TEST_FILE);
if(!file)
{
std::cerr << "Gio::File::create_for_path() returned an empty RefPtr." << std::endl;
return EXIT_FAILURE;
}
- Glib::RefPtr<Gio::FileInputStream> stream = file->read();
+ auto stream = file->read();
if(!stream)
{
std::cerr << "Gio::File::read() returned an empty RefPtr." << std::endl;