mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
fix interrogate compile error when a function takes a non-const char pointer
This commit is contained in:
parent
93afeb40f2
commit
abc5c381be
@ -26,10 +26,19 @@ ParameterRemapToString(CPPType *orig_type) :
|
||||
{
|
||||
static CPPType *char_star_type = (CPPType *)NULL;
|
||||
if (char_star_type == (CPPType *)NULL) {
|
||||
char_star_type = parser.parse_type("const char *");
|
||||
char_star_type = parser.parse_type("char *");
|
||||
}
|
||||
|
||||
_new_type = char_star_type;
|
||||
static CPPType *const_char_star_type = (CPPType *)NULL;
|
||||
if (const_char_star_type == (CPPType *)NULL) {
|
||||
const_char_star_type = parser.parse_type("const char *");
|
||||
}
|
||||
|
||||
if (TypeManager::is_const(orig_type)) {
|
||||
_new_type = const_char_star_type;
|
||||
} else {
|
||||
_new_type = char_star_type;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user