[Libreoffice-commits] online.git: wsd/DocumentBroker.cpp wsd/DocumentBroker.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sat Jan 6 21:14:41 UTC 2018


 wsd/DocumentBroker.cpp |    2 +-
 wsd/DocumentBroker.hpp |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 040a211d60c6eab8695cad4bee78b22f38428b77
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Wed Jan 3 23:15:44 2018 -0500

    wsd: set modified flag on the storage when set on the DocumentBroker
    
    Change-Id: Ieb4eb02f68f2d02ad88d6f59ad61de8f1e309670
    Reviewed-on: https://gerrit.libreoffice.org/47365
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index 53e0ae61..6a164533 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -1401,7 +1401,7 @@ void DocumentBroker::destroyIfLastEditor(const std::string& id)
 
 void DocumentBroker::setModified(const bool value)
 {
-    if(_isModified != value)
+    if (_isModified != value)
     {
         _isModified = value;
         Admin::instance().modificationAlert(_docKey, getPid(), value);
diff --git a/wsd/DocumentBroker.hpp b/wsd/DocumentBroker.hpp
index a56d3332..0e278150 100644
--- a/wsd/DocumentBroker.hpp
+++ b/wsd/DocumentBroker.hpp
@@ -248,6 +248,7 @@ public:
 
     bool isModified() const { return _isModified; }
     void setModified(const bool value);
+
     /// Save the document if the document is modified.
     /// @param force when true, will force saving if there
     /// has been any recent activity after the last save.


More information about the Libreoffice-commits mailing list