Passing arguments by reference (#21205)

old-commit-hash: ee46672d3c
This commit is contained in:
Dean Lee
2021-06-09 20:09:02 +08:00
committed by GitHub
parent 93858572b5
commit 51cf285c31
11 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ namespace ublox {
uint32_t tAccNs;
} __attribute__((packed));
inline std::string ubx_add_checksum(std::string msg){
inline std::string ubx_add_checksum(const std::string &msg){
assert(msg.size() > 2);
uint8_t ck_a = 0, ck_b = 0;