+2002-06-26 Angus Leeming <leeming@lyx.org>
+
+ * GraphicsLoader.[Ch]: use boost::scoped_ptr in preference to
+ std::auto_ptr. Define an empty Loader d-tor out-of-line to ensure it
+ compiles.
+
2002-06-26 Angus Leeming <leeming@lyx.org>
* GraphicsTypes.h: add "Ready" to the ImageStatus enum.
}
+Loader::~Loader()
+{}
+
+
void Loader::reset(string const & file, DisplayType type)
{
pimpl_->unsetOldFile();
#include "LString.h"
#include <boost/signals/signal0.hpp>
-#include <memory>
+#include <boost/scoped_ptr.hpp>
namespace grfx {
/// The image is transformed before display.
Loader(string const & file_with_path, GParams const &);
+ /// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
+ ~Loader();
+
/// The file can be changed, or the display params, or both.
void reset(string const & file_with_path, DisplayType = ColorDisplay);
///
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
- std::auto_ptr<Impl> const pimpl_;
+ boost::scoped_ptr<Impl> const pimpl_;
};
} // namespace grfx
+2002-06-26 Angus Leeming <leeming@lyx.org>
+
+ * insetgraphics.h: use boost::scoped_ptr in preference to
+ std::auto_ptr.
+
2002-06-26 Angus Leeming <leeming@lyx.org>
* insetgraphics.C: moved the image loading stuff into a new class
// We need a signal here to hide an active dialog when we are deleted.
#include <boost/signals/signal0.hpp>
#include <boost/signals/trackable.hpp>
-
-#include <memory> // auto_ptr
+#include <boost/scoped_ptr.hpp>
class Dialogs;
class LaTeXFeatures;
/// The cached variables
class Cache;
friend class Cache;
- /** Can change the contents of the cache, but not the pointer.
- * Use std::auto_ptr not boost::scoped_ptr so we do not have to define
- * Cache in advance.
- */
- std::auto_ptr<Cache> const cache_;
+ /// The pointer never changes although *cache_'s contents may.
+ boost::scoped_ptr<Cache> const cache_;
};
#endif