commit | eda65f5f60c01a6eb4f2e9e7ff79c59fe755c2f7 | [log] [tgz] |
---|---|---|
author | Scott Tsai <scottt.tw@gmail.com> | Sat Mar 21 08:17:41 2009 +0800 |
committer | Scott Tsai <scottt.tw@gmail.com> | Sat Mar 21 08:17:41 2009 +0800 |
tree | 1a7778b5dfe19bab6a22cd0ea7ed554ed8dfcfda | |
parent | 0c4ee7741c94376599256f923c08dac18d090e97 [diff] |
q2dm: correctly expect the return type of strchr(const char*) to be 'const char*' in C++ so that the code builds on gcc-4.4 ISO C++ overloads strchr() so that strchr(const char*) return 'const char*' and strchr(char *) return 'char *'. Since DmTrace::parseAndAddFunction really wants to write to its 'const char *name' argument I just casted a pointer pointing inside of 'name' to 'char*'