[SCM] kodi-pvr-vdr-vnsi/master: requestpacket: make read-only methods "const"
tiber-guest at users.alioth.debian.org
tiber-guest at users.alioth.debian.org
Sun Feb 28 15:46:48 UTC 2016
The following commit has been merged in the master branch:
commit 6eea00361bcf17c60b39b495fd43e3d1430620da
Author: Max Kellermann <max at duempel.org>
Date: Thu Nov 5 11:19:19 2015 +0100
requestpacket: make read-only methods "const"
diff --git a/src/requestpacket.h b/src/requestpacket.h
index 499f679..896bdf4 100644
--- a/src/requestpacket.h
+++ b/src/requestpacket.h
@@ -37,12 +37,12 @@ class cRequestPacket
bool add_U64(uint64_t ull);
bool add_S64(int64_t ll);
- uint8_t* getPtr() { return buffer; }
- size_t getLen() { return bufUsed; }
- uint32_t getChannel() { return channel; }
- uint32_t getSerial() { return serialNumber; }
+ uint8_t* getPtr() const { return buffer; }
+ size_t getLen() const { return bufUsed; }
+ uint32_t getChannel() const { return channel; }
+ uint32_t getSerial() const { return serialNumber; }
- uint32_t getOpcode() { return opcode; }
+ uint32_t getOpcode() const { return opcode; }
private:
static uint32_t serialNumberCounter;
--
kodi-pvr-vdr-vnsi packaging
More information about the pkg-multimedia-commits
mailing list