some de-boostification

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21852 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-11-29 07:11:08 +00:00
parent 9d0ea8aeff
commit efbf9fec5e
2 changed files with 11 additions and 7 deletions

View File

@ -58,7 +58,9 @@ FileMonitor::FileMonitor(FileName const & file_with_path, int interval)
FileMonitor::~FileMonitor()
{}
{
delete pimpl_;
}
void FileMonitor::reset(FileName const & file_with_path) const

View File

@ -15,8 +15,6 @@
#ifndef FILEMONITOR_H
#define FILEMONITOR_H
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/signal.hpp>
namespace lyx {
@ -24,14 +22,15 @@ namespace support {
class FileName;
class FileMonitor : boost::noncopyable {
class FileMonitor
{
public:
/** Once monitoring begins, the file will be monitored every
* interval ms.
*/
FileMonitor(FileName const & file_with_path, int interval);
/// Define an empty d-tor out-of-line to keep boost::scoped_ptr happy.
/// Destructor
~FileMonitor();
///
@ -60,11 +59,14 @@ public:
boost::signals::connection connect(slot_type const &) const;
private:
/// noncopyable
FileMonitor(FileMonitor const &);
void operator=(FileMonitor const &);
/// 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 support