Add copy constructor.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7090 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-06-03 10:13:26 +00:00
parent fb5ff81c81
commit 5b4e90488c
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-06-03 Angus Leeming <leeming@lyx.org>
* GraphicsLoader.[Ch] (Loader): add copy constructor.
2003-05-23 Angus Leeming <leeming@lyx.org>
* PreviewLoader.C (dumpPreamble): rename fragile as moving_arg.

View File

@ -38,9 +38,10 @@ struct Loader::Impl : boost::signals::trackable {
void resetParams(Params const &);
///
void createPixmap();
///
void startLoading();
///
Params const & params() const { return params_; }
/// The loading status of the image.
ImageStatus status_;
@ -84,6 +85,11 @@ Loader::Loader(string const & file, Params const & params)
}
Loader::Loader(Loader const & other)
: pimpl_(new Impl(other.pimpl_->params()))
{}
Loader::~Loader()
{}

View File

@ -46,6 +46,8 @@ public:
Loader(string const & file_with_path, DisplayType = ColorDisplay);
/// The image is transformed before display.
Loader(string const & file_with_path, Params const &);
///
Loader(Loader const &);
/// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
~Loader();