Small deboostification

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26461 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-09-19 21:18:18 +00:00
parent 7b8908881c
commit a62d0ab1bf
2 changed files with 4 additions and 11 deletions

View File

@ -83,9 +83,6 @@ TODO
#include "support/os.h" #include "support/os.h"
#include "support/Systemcall.h" #include "support/Systemcall.h"
#include <boost/bind.hpp>
#include <boost/tuple/tuple.hpp>
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>
@ -164,8 +161,7 @@ InsetGraphics::InsetGraphics(Buffer & buf)
InsetGraphics::InsetGraphics(InsetGraphics const & ig) InsetGraphics::InsetGraphics(InsetGraphics const & ig)
: Inset(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)) graphic_(new RenderGraphic(*ig.graphic_, this))
{ {
setParams(ig.params()); setParams(ig.params());
@ -181,6 +177,7 @@ Inset * InsetGraphics::clone() const
InsetGraphics::~InsetGraphics() InsetGraphics::~InsetGraphics()
{ {
hideDialogs("graphics", this); hideDialogs("graphics", this);
delete graphic_;
} }

View File

@ -17,10 +17,6 @@
#include "Inset.h" #include "Inset.h"
#include "InsetGraphicsParams.h" #include "InsetGraphicsParams.h"
#include <boost/scoped_ptr.hpp>
#include <boost/signals/trackable.hpp>
namespace lyx { namespace lyx {
class RenderGraphic; class RenderGraphic;
@ -33,7 +29,7 @@ class LaTeXFeatures;
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
/// Used for images etc. /// Used for images etc.
class InsetGraphics : public Inset, public boost::signals::trackable class InsetGraphics : public Inset
{ {
public: public:
/// ///
@ -120,7 +116,7 @@ private:
/// holds the entity name that defines the graphics location (SGML). /// holds the entity name that defines the graphics location (SGML).
docstring const graphic_label; docstring const graphic_label;
/// The thing that actually draws the image on LyX's screen. /// The thing that actually draws the image on LyX's screen.
boost::scoped_ptr<RenderGraphic> const graphic_; RenderGraphic * graphic_;
}; };
namespace graphics { namespace graphics {