Skip to content

Commit

Permalink
Merge pull request #68 from iSLC/master
Browse files Browse the repository at this point in the history
Explicitly remove the const qualifier from string literal.
  • Loading branch information
braindigitalis authored Sep 11, 2021
2 parents a1ea252 + a119c29 commit 83afe1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/discordevents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ std::string StringNotNull(const json* j, const char *keyname) {
if (k != j->end()) {
return !k->is_null() && k->is_string() ? k->get<std::string>() : "";
} else {
return "";
return const_cast< char* >("");
}
}

Expand Down

0 comments on commit 83afe1a

Please sign in to comment.