]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileMonitor.C
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / support / FileMonitor.C
index 84f47cdaad7fa5fc739491dbb240515fa12716cd..c96b4e6233dfe8c4f6675b295749d5ef67b8de6c 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "FileMonitor.h"
 
 #include "frontends/Timeout.h"
@@ -24,6 +20,9 @@
 #include <boost/bind.hpp>
 #include <boost/signals/trackable.hpp>
 
+namespace lyx {
+namespace support {
+
 struct FileMonitor::Impl : public boost::signals::trackable {
 
        ///
@@ -91,7 +90,7 @@ void FileMonitor::start() const
                return;
 
        pimpl_->timestamp_ = finfo.getModificationTime();
-       pimpl_->checksum_ = lyx::sum(pimpl_->filename_);
+       pimpl_->checksum_ = sum(pimpl_->filename_);
 
        if (pimpl_->timestamp_ && pimpl_->checksum_) {
                pimpl_->timer_.start();
@@ -121,7 +120,7 @@ unsigned long FileMonitor::checksum() const
        // If we aren't actively monitoring the file, then recompute the
        // checksum explicitly.
        if (!pimpl_->timer_.running() && !pimpl_->filename_.empty())
-               return lyx::sum(pimpl_->filename_);
+               return sum(pimpl_->filename_);
 
        return pimpl_->checksum_;
 }
@@ -164,7 +163,7 @@ void FileMonitor::Impl::monitorFile()
                if (new_timestamp != timestamp_) {
                        timestamp_ = new_timestamp;
 
-                       unsigned long const new_checksum = lyx::sum(filename_);
+                       unsigned long const new_checksum = sum(filename_);
                        if (new_checksum != checksum_) {
                                checksum_ = new_checksum;
                                changed = true;
@@ -176,3 +175,6 @@ void FileMonitor::Impl::monitorFile()
        if (changed)
                fileChanged_();
 }
+
+} // namespace support
+} // namespace lyx