commit c76cbead594596727d2cc57e6990839fd2b62370
Author: Guillaume MM <[email protected]>
Date:   Fri May 12 20:59:24 2017 +0200

    Cosmetic
---
 src/Buffer.cpp            |    6 ++++--
 src/support/FileMonitor.h |    2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 436b0a8..239bacd 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -5323,8 +5323,10 @@ void Buffer::updateChangesPresent() const
 
 void Buffer::Impl::refreshFileMonitor()
 {
-       if (file_monitor_ && file_monitor_->filename() == 
filename.absFileName())
-               return file_monitor_->refresh();
+       if (file_monitor_ && file_monitor_->filename() == 
filename.absFileName()) {
+               file_monitor_->refresh();
+               return;
+       }
 
        // The previous file monitor is invalid
        // This also destroys the previous file monitor and all its connections
diff --git a/src/support/FileMonitor.h b/src/support/FileMonitor.h
index 0d8129e..23302ed 100644
--- a/src/support/FileMonitor.h
+++ b/src/support/FileMonitor.h
@@ -176,7 +176,7 @@ public:
        /// Make sure the good file is being monitored, after e.g. a move or a
        /// deletion. See <https://bugreports.qt.io/browse/QTBUG-46483>. This is
        /// called automatically.
-       void refresh() { return monitor_->refresh(); }
+       void refresh() { monitor_->refresh(); }
 
 Q_SIGNALS:
        /// Connect to this to be notified when the file changes

Reply via email to