]> git.lyx.org Git - features.git/commitdiff
Small deboostification
authorAbdelrazak Younes <younes@lyx.org>
Fri, 19 Sep 2008 21:18:18 +0000 (21:18 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 19 Sep 2008 21:18:18 +0000 (21:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26461 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetGraphics.cpp
src/insets/InsetGraphics.h

index ac3fe4642eab52825206e1cbe32356216849dc7f..6b75f96ce38cf3f4ee1e21f349288a1b66e64809 100644 (file)
@@ -83,9 +83,6 @@ TODO
 #include "support/os.h"
 #include "support/Systemcall.h"
 
-#include <boost/bind.hpp>
-#include <boost/tuple/tuple.hpp>
-
 #include <algorithm>
 #include <sstream>
 
@@ -164,8 +161,7 @@ InsetGraphics::InsetGraphics(Buffer & buf)
 
 InsetGraphics::InsetGraphics(InsetGraphics const & ig)
        : Inset(ig),
-         boost::signals::trackable(),
-               graphic_label(sgml::uniqueID(from_ascii("graph"))),
+         graphic_label(sgml::uniqueID(from_ascii("graph"))),
          graphic_(new RenderGraphic(*ig.graphic_, this))
 {
        setParams(ig.params());
@@ -181,6 +177,7 @@ Inset * InsetGraphics::clone() const
 InsetGraphics::~InsetGraphics()
 {
        hideDialogs("graphics", this);
+       delete graphic_;
 }
 
 
index 6d0c51f404f150bb145606e33ddc1619bed144eb..bb847bb5e96b3851d0a6ec5284b3ba4e988be249 100644 (file)
 #include "Inset.h"
 #include "InsetGraphicsParams.h"
 
-#include <boost/scoped_ptr.hpp>
-#include <boost/signals/trackable.hpp>
-
-
 namespace lyx {
 
 class RenderGraphic;
@@ -33,7 +29,7 @@ class LaTeXFeatures;
 /////////////////////////////////////////////////////////////////////////
 
 /// Used for images etc.
-class InsetGraphics : public Inset, public boost::signals::trackable
+class InsetGraphics : public Inset
 {
 public:
        ///
@@ -120,7 +116,7 @@ private:
        /// holds the entity name that defines the graphics location (SGML).
        docstring const graphic_label;
        /// The thing that actually draws the image on LyX's screen.
-       boost::scoped_ptr<RenderGraphic> const graphic_;
+       RenderGraphic * graphic_;
 };
 
 namespace graphics {