зеркало из https://github.com/mozilla/gecko-dev.git
18639 r=dp need to cast away the const returned by the sun C++ 5.0 compiler
This commit is contained in:
Родитель
595cabd731
Коммит
d2d2a9d816
|
@ -554,7 +554,7 @@ static void InitTraceLog(void)
|
|||
fprintf(stdout, "### XPCOM_MEM_LOG_CLASSES defined -- only logging these classes: ");
|
||||
const char* cp = classes;
|
||||
for (;;) {
|
||||
char* cm = strchr(cp, ',');
|
||||
char* cm = (char*) strchr(cp, ',');
|
||||
if (cm) {
|
||||
*cm = '\0';
|
||||
}
|
||||
|
@ -592,7 +592,7 @@ static void InitTraceLog(void)
|
|||
fprintf(stdout, "### XPCOM_MEM_LOG_OBJECTS defined -- only logging these objects: ");
|
||||
const char* cp = objects;
|
||||
for (;;) {
|
||||
char* cm = strchr(cp, ',');
|
||||
char* cm = (char*) strchr(cp, ',');
|
||||
if (cm) {
|
||||
*cm = '\0';
|
||||
}
|
||||
|
|
|
@ -554,7 +554,7 @@ static void InitTraceLog(void)
|
|||
fprintf(stdout, "### XPCOM_MEM_LOG_CLASSES defined -- only logging these classes: ");
|
||||
const char* cp = classes;
|
||||
for (;;) {
|
||||
char* cm = strchr(cp, ',');
|
||||
char* cm = (char*) strchr(cp, ',');
|
||||
if (cm) {
|
||||
*cm = '\0';
|
||||
}
|
||||
|
@ -592,7 +592,7 @@ static void InitTraceLog(void)
|
|||
fprintf(stdout, "### XPCOM_MEM_LOG_OBJECTS defined -- only logging these objects: ");
|
||||
const char* cp = objects;
|
||||
for (;;) {
|
||||
char* cm = strchr(cp, ',');
|
||||
char* cm = (char*) strchr(cp, ',');
|
||||
if (cm) {
|
||||
*cm = '\0';
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче