diff options
Diffstat (limited to 'tests/giomm_ioerror')
-rw-r--r-- | tests/giomm_ioerror/main.cc | 4 |
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; |