summaryrefslogtreecommitdiff
path: root/tests/giomm_simple/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/giomm_simple/main.cc')
-rw-r--r--tests/giomm_simple/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/giomm_simple/main.cc b/tests/giomm_simple/main.cc
index e88c4604..175cadf3 100644
--- a/tests/giomm_simple/main.cc
+++ b/tests/giomm_simple/main.cc
@@ -22,14 +22,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;