remove a few uses of boost::scoped_ptr

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21705 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-11-21 23:47:47 +00:00
parent d33cedef34
commit 98ddc514da
14 changed files with 32 additions and 32 deletions

View File

@ -56,7 +56,9 @@ Cache::Cache()
Cache::~Cache()
{}
{
delete pimpl_;
}
std::vector<string> Cache::loadableFormats() const

View File

@ -20,7 +20,6 @@
#ifndef GRAPHICSCACHE_H
#define GRAPHICSCACHE_H
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <vector>
@ -85,7 +84,7 @@ private:
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
boost::scoped_ptr<Impl> const pimpl_;
Impl * const pimpl_;
};
} // namespace graphics

View File

@ -141,7 +141,9 @@ CacheItem::CacheItem(FileName const & file)
CacheItem::~CacheItem()
{}
{
delete pimpl_;
}
FileName const & CacheItem::filename() const

View File

@ -30,7 +30,6 @@
#include "GraphicsTypes.h"
#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
@ -48,8 +47,7 @@ class CacheItem {
public:
///
CacheItem(support::FileName const & file);
/// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
/// Needed for the pimpl
~CacheItem();
///
@ -96,9 +94,8 @@ private:
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
boost::scoped_ptr<Impl> const pimpl_;
Impl * const pimpl_;
};
} // namespace graphics

View File

@ -102,9 +102,10 @@ Converter::Converter(FileName const & from_file, string const & to_file_base,
{}
// Empty d-tor out-of-line to keep boost::scoped_ptr happy.
Converter::~Converter()
{}
{
delete pimpl_;
}
void Converter::startConversion() const

View File

@ -17,7 +17,6 @@
#ifndef GRAPHICSCONVERTER_H
#define GRAPHICSCONVERTER_H
#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
namespace lyx {
@ -38,7 +37,7 @@ public:
Converter(support::FileName const & from_file, std::string const & to_file_base,
std::string const & from_format, std::string const & to_format);
/// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
/// Needed for the pimpl
~Converter();
/// We are explicit about when we begin the conversion process.
@ -67,9 +66,8 @@ private:
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
boost::scoped_ptr<Impl> const pimpl_;
Impl * const pimpl_;
};
} // namespace graphics

View File

@ -98,7 +98,9 @@ Loader::Loader(Loader const & other)
Loader::~Loader()
{}
{
delete pimpl_;
}
Loader & Loader::operator=(Loader const & other)

View File

@ -26,7 +26,6 @@
#include "GraphicsTypes.h"
#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
namespace lyx {
@ -48,8 +47,7 @@ public:
Loader(support::FileName const & file_with_path, Params const &);
///
Loader(Loader const &);
/// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
/// Needed for the pimpl
~Loader();
Loader & operator=(Loader const &);
@ -104,7 +102,7 @@ private:
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
boost::scoped_ptr<Impl> const pimpl_;
Impl * const pimpl_;
};
} // namespace graphics

View File

@ -63,7 +63,9 @@ PreviewImage::PreviewImage(PreviewLoader & l,
PreviewImage::~PreviewImage()
{}
{
delete pimpl_;
}
string const & PreviewImage::snippet() const

View File

@ -12,8 +12,7 @@
#ifndef PREVIEWIMAGE_H
#define PREVIEWIMAGE_H
#include <boost/scoped_ptr.hpp>
#include <string>
#include "support/strfwd.h"
namespace lyx {
@ -54,7 +53,7 @@ private:
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
boost::scoped_ptr<Impl> const pimpl_;
Impl * const pimpl_;
};
} // namespace graphics

View File

@ -210,7 +210,6 @@ typedef InProgressProcesses::value_type InProgressProcess;
namespace lyx {
namespace graphics {
class PreviewLoader::Impl : public boost::signals::trackable {
@ -288,7 +287,9 @@ PreviewLoader::PreviewLoader(Buffer const & b)
PreviewLoader::~PreviewLoader()
{}
{
delete pimpl_;
}
PreviewImage const * PreviewLoader::preview(string const & latex_snippet) const

View File

@ -18,7 +18,6 @@
#ifndef PREVIEWLOADER_H
#define PREVIEWLOADER_H
#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
@ -95,7 +94,7 @@ private:
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
boost::scoped_ptr<Impl> const pimpl_;
Impl * const pimpl_;
};
} // namespace graphics

View File

@ -54,7 +54,9 @@ Previews::Previews()
Previews::~Previews()
{}
{
delete pimpl_;
}
PreviewLoader & Previews::loader(Buffer const & buffer) const

View File

@ -15,8 +15,6 @@
#ifndef PREVIEWS_H
#define PREVIEWS_H
#include <boost/scoped_ptr.hpp>
namespace lyx {
class Buffer;
@ -62,7 +60,7 @@ private:
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.
boost::scoped_ptr<Impl> const pimpl_;
Impl * const pimpl_;
};
} // namespace graphics