From a62d0ab1bf30296de925fdd120b5534e06539358 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 19 Sep 2008 21:18:18 +0000 Subject: [PATCH] Small deboostification git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26461 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetGraphics.cpp | 7 ++----- src/insets/InsetGraphics.h | 8 ++------ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp index ac3fe4642e..6b75f96ce3 100644 --- a/src/insets/InsetGraphics.cpp +++ b/src/insets/InsetGraphics.cpp @@ -83,9 +83,6 @@ TODO #include "support/os.h" #include "support/Systemcall.h" -#include -#include - #include #include @@ -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_; } diff --git a/src/insets/InsetGraphics.h b/src/insets/InsetGraphics.h index 6d0c51f404..bb847bb5e9 100644 --- a/src/insets/InsetGraphics.h +++ b/src/insets/InsetGraphics.h @@ -17,10 +17,6 @@ #include "Inset.h" #include "InsetGraphicsParams.h" -#include -#include - - 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 const graphic_; + RenderGraphic * graphic_; }; namespace graphics { -- 2.39.2