Skip to content

Commit

Permalink
Add const to string to convert
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Oct 31, 2024
1 parent 103b771 commit 26ab33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReturnCodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ std::string GetReturnStatus(const int code) {
* @return A status message corresponding to the input code.
******************************************************************************/
char *GetReturnStatusCharArray(const int code) {
std::string msg = GetReturnStatus(code);
const std::string msg = GetReturnStatus(code);
char *c_msg = new char[msg.size() + 1];
#ifndef _WIN32
strcpy_s(c_msg, msg.size() + 1, msg.c_str());
Expand Down

0 comments on commit 26ab33b

Please sign in to comment.