]> git.lyx.org Git - lyx.git/commitdiff
some de-boostification
authorAndré Pönitz <poenitz@gmx.net>
Thu, 29 Nov 2007 07:11:08 +0000 (07:11 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 29 Nov 2007 07:11:08 +0000 (07:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21852 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileMonitor.cpp
src/support/FileMonitor.h

index df887235096710140edbb42497fd4b5077907eb3..1abca468ed05957da488037e0004f601f9bbbb6d 100644 (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
index 2c2131025195e1b819346ac49e1e7c0cbc729b1c..5b04b6c8ff8c5767354bb403ec90cc59f89b9b29 100644 (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