Skip to content

Commit 83afe1a

Browse files
Merge pull request #68 from iSLC/master
Explicitly remove the const qualifier from string literal.
2 parents a1ea252 + a119c29 commit 83afe1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dpp/discordevents.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ std::string StringNotNull(const json* j, const char *keyname) {
7979
if (k != j->end()) {
8080
return !k->is_null() && k->is_string() ? k->get<std::string>() : "";
8181
} else {
82-
return "";
82+
return const_cast< char* >("");
8383
}
8484
}
8585

0 commit comments

Comments
 (0)