PDA

Просмотр полной версии : [10322] In chat command handlers use char* arg instead "const char*"


newsbot
06.08.2010, 01:20
<pre>m src/game/Chat.cpp
m src/game/Chat.h
m src/game/Level0.cpp
m src/game/Level1.cpp
m src/game/Level2.cpp
m src/game/Level3.cpp
m src/game/debugcmds.cpp
m src/mangosd/CliRunnable.cpp
m src/shared/revision_nr.h

[10322] In chat command handlers use char* arg instead "const char*"

We in any case modify args string content at parsing in commands,
so cast it to char* early. This let avoid lot later casts.

Some other code style exist in related code.</pre>



Дальше... (http://github.com/mangos/mangos/commit/1ec9b7837b05099618d122f55a74badb64a33a0a)