issues
search
attie
/
libxbee3
A C/C++ library to aid the use of Digi XBee radios in API mode
GNU Lesser General Public License v3.0
68
stars
40
forks
source link
Use const in the C++ interface wherever this is possible
#36
Closed
skalkoto
closed
6 years ago
skalkoto
commented
6 years ago
Declare all member functions that don't alter the object as const.
Use "const string&" instead of "string" in member function parameters. There is no need to do the extra copy.
Use const pointer parameters whenever possible.