Skip to content

Commit

Permalink
fix char* -> const char*
Browse files Browse the repository at this point in the history
  • Loading branch information
p0358 committed Nov 2, 2023
1 parent a8e8bd4 commit 05448c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discord_rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ extern "C" DISCORD_EXPORT void Discord_Initialize(const char* applicationId,
};
Connection->onDebug = [](bool out, RpcConnection::MessageFrame* frame) {
if (Handlers.debug) {
char* opcode = "Unknown";
const char* opcode = "Unknown";
switch (frame->opcode) {
case RpcConnection::Opcode::Handshake:
opcode = "Handshake";
Expand Down

0 comments on commit 05448c6

Please sign in to comment.