]> git.xonotic.org Git - xonotic/netradiant.git/commit
deduplicate empty string affectation
authorThomas Debesse <dev@illwieckz.net>
Tue, 18 Jul 2017 09:26:44 +0000 (11:26 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 1 Aug 2017 14:31:20 +0000 (16:31 +0200)
commitcea81dbee7648b190b9688b9ae3447974439e6a7
tree2395f0be099a01101d158044e73a8d5b3fb65b60
parent0bed5ba99b9efb953557fde7738d597164f65e19
deduplicate empty string affectation

These the first line is useless, since being overwritten:

g_pStrWork = "";
g_pStrWork = new char[1];
g_pStrWork[0] = '\0';

Also, that first line uselessly raises this warning:

ISO C++ forbids converting a string constant to ‘char*’
libs/str.h