[Libreoffice-commits] online.git: common/Message.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Fri Feb 3 07:08:33 UTC 2017


 common/Message.hpp |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit cd4e8205cf9c8c4921b809fa67c5ff15bda9389c
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Tue Jan 31 22:46:46 2017 -0500

    wsd: add getTokenInteger to Message
    
    Change-Id: I2c145aa088082ef056b92c9864b34d8cc2f737cd
    Reviewed-on: https://gerrit.libreoffice.org/33861
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/common/Message.hpp b/common/Message.hpp
index a71cf56..d75b1e9 100644
--- a/common/Message.hpp
+++ b/common/Message.hpp
@@ -81,6 +81,11 @@ public:
     const std::string& firstLine() const { return _firstLine; }
     const std::string& operator[](size_t index) const { return _tokens[index]; }
 
+    bool getTokenInteger(const std::string& name, int& value)
+    {
+        return LOOLProtocol::getTokenInteger(_tokens, name, value);
+    }
+
     /// Return the abbreviated message for logging purposes.
     const std::string& abbr() const { return _abbr; }
     const std::string& id() const { return _id; }


More information about the Libreoffice-commits mailing list