Permalink
Browse files

Fix the constness of IPV4Address Get(ptr)

  • Loading branch information...
peternewman committed Jan 1, 2019
1 parent 3de3c86 commit 98da6209b12cdaa3f6dcef4c18f3a9623577efd7
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/ola/network/IPV4Address.h
@@ -139,8 +139,8 @@ class IPV4Address {
* should be at least LENGTH bytes.
* @note The address is copied in network byte order.
*/
void Get(uint8_t ptr[LENGTH]) {
memcpy(ptr, reinterpret_cast<uint8_t*>(&m_address), LENGTH);
void Get(uint8_t ptr[LENGTH]) const {
memcpy(ptr, reinterpret_cast<const uint8_t*>(&m_address), LENGTH);
}

/**

0 comments on commit 98da620

Please sign in to comment.