]> git.lyx.org Git - features.git/commitdiff
forgot those
authorAndré Pönitz <poenitz@gmx.net>
Thu, 22 Nov 2007 00:04:19 +0000 (00:04 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 22 Nov 2007 00:04:19 +0000 (00:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21708 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiImage.cpp
src/frontends/qt4/GuiImage.h

index e8971c4feaaa3f9a87078af428a4197d5ab44bde..c5c870a62198870cf00be5278b333997600feefe 100644 (file)
@@ -42,11 +42,9 @@ namespace lyx {
 namespace graphics {
 
 /// Access to this class is through this static method.
-Image::ImagePtr GuiImage::newImage()
+Image * GuiImage::newImage()
 {
-       ImagePtr ptr;
-       ptr.reset(new GuiImage);
-       return ptr;
+       return new GuiImage;
 }
 
 
index 5fab560fedfa033e230c4271d08c0b30cad74c60..e88af055e4f26a2684a9d76e12a464ebf4e6516d 100644 (file)
@@ -25,7 +25,7 @@ class GuiImage : public Image
 {
 public:
        /// Access to this class is through this static method.
-       static ImagePtr newImage();
+       static Image * newImage();
 
        /// Return the list of loadable formats.
        static FormatList loadableFormats();