commit | e052c7991c00263bcf20f033e95f15e3bbdcc8ca | [log] [tgz] |
---|---|---|
author | Peter Bigot <peter.bigot@nordicsemi.no> | Thu Apr 30 13:20:41 2020 -0500 |
committer | Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> | Thu May 07 10:51:49 2020 +0200 |
tree | 9f5c8b6c31883527c10e3a603e6915cdd70be5dd | |
parent | 94b744cc0a69c69cf390333e9432cd7c58f4e4b1 [diff] |
settings: add const qualifier for unmodified data source Code using this API to set a key to a value that is a string literal produces errors in C++ because the passed pointer is not const qualified, allowing the possibility that the callee modifies the referenced string literal memory. Add the required const qualifiers since the set function does not change the passed to it. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>