]> git.tdb.fi Git - libs/gui.git/commitdiff
Use a RefPtr of correct type
authorMikko Rasa <tdb@tdb.fi>
Mon, 7 Oct 2013 16:43:02 +0000 (19:43 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 7 Oct 2013 16:43:02 +0000 (19:43 +0300)
source/graphics/imageloader.cpp

index daedab6c5b57e80539c580602dcc5c07a3f923f5..6cdaef912e65062740c284559b3851c742bd102b 100644 (file)
@@ -27,7 +27,7 @@ ImageLoader *ImageLoader::open_file(const string &fn)
 {
        try
        {
-               RefPtr<IO::File> file = new IO::BufferedFile(fn);
+               RefPtr<IO::BufferedFile> file = new IO::BufferedFile(fn);
                ImageLoader *loader = open_io(*file);
                loader->source = file.release();
                return loader;