[SCM] kodi-pvr-vdr-vnsi/master: VNSISession: make read-only methods "const"

tiber-guest at users.alioth.debian.org tiber-guest at users.alioth.debian.org
Sun Feb 28 15:46:49 UTC 2016


The following commit has been merged in the master branch:
commit 82c5a204adfd4751428c3a485aebce57609253e3
Author: Max Kellermann <max at duempel.org>
Date:   Thu Nov 5 11:23:11 2015 +0100

    VNSISession: make read-only methods "const"

diff --git a/src/VNSISession.h b/src/VNSISession.h
index 541530c..649349c 100644
--- a/src/VNSISession.h
+++ b/src/VNSISession.h
@@ -49,9 +49,9 @@ public:
   cResponsePacket*  ReadResult(cRequestPacket* vrp);
   bool              ReadSuccess(cRequestPacket* m);
 
-  int                GetProtocol()   { return m_protocol; }
-  const std::string& GetServerName() { return m_server; }
-  const std::string& GetVersion()    { return m_version; }
+  int                GetProtocol() const { return m_protocol; }
+  const std::string& GetServerName() const { return m_server; }
+  const std::string& GetVersion() const { return m_version; }
 
 protected:
 
@@ -64,7 +64,7 @@ protected:
   virtual void OnReconnect();
 
   virtual void SignalConnectionLost();
-  bool ConnectionLost() { return m_connectionLost; }
+  bool ConnectionLost() const { return m_connectionLost; }
 
   std::string      m_hostname;
   int              m_port;

-- 
kodi-pvr-vdr-vnsi packaging



More information about the pkg-multimedia-commits mailing list