Mercurial > otakunoraifu
comparison system/system_config.cc @ 47:5f548e5957a8
* get rid of the "deprecated conversion from string constant to ‘char*’" warnings
author | thib |
---|---|
date | Wed, 15 Apr 2009 20:26:32 +0000 |
parents | 651237260724 |
children | ed6c21dde840 |
comparison
equal
deleted
inserted
replaced
46:3aa3d244ad90 | 47:5f548e5957a8 |
---|---|
210 data += out_data; | 210 data += out_data; |
211 delete[] out_data; | 211 delete[] out_data; |
212 return; | 212 return; |
213 } | 213 } |
214 const char* PatchOriginal(const char* data) { | 214 const char* PatchOriginal(const char* data) { |
215 static char* table = "?\"',.:;=<>"; | 215 static const char* table = "?\"',.:;=<>"; |
216 if (new_data) delete[] new_data; | 216 if (new_data) delete[] new_data; |
217 if (old_data) delete[] old_data; | 217 if (old_data) delete[] old_data; |
218 new_data = 0; old_data = 0; | 218 new_data = 0; old_data = 0; |
219 new_data = new char[1024]; | 219 new_data = new char[1024]; |
220 int i,j = 0; | 220 int i,j = 0; |