• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Request - Add const modifier wherever possible in the mq2codebase.

Joined
Mar 23, 2017
RedCents
1,560¢
In the process of writing my first plugin in c++ I noticed that const is heavily underused in in the mq2 codebase. :( C++ strings only hand out const pointers to their internals and suddenly I have to write uggly stuff like this: WriteChatColor(const_cast<char*>(text), USERCOLOR_DEFAULT);
So please consider adding const wherever possible for more type safety and more options for the compiler to optimize.
 
Request - Add const modifier wherever possible in the mq2codebase.

Users who are viewing this thread

Back
Top
Cart