Use NSPACE_SEPARATOR rather than liter string for package seperator.
This commit is contained in:
parent
c62cd63f71
commit
6cb5b5487f
2 changed files with 3 additions and 3 deletions
|
|
@ -357,7 +357,7 @@ Language::~Language() {
|
||||||
const char *attrib = "director:classname";
|
const char *attrib = "director:classname";
|
||||||
String *classname = Getattr(n, "sym:name");
|
String *classname = Getattr(n, "sym:name");
|
||||||
|
|
||||||
Replace(nspace, ".", "_", DOH_REPLACE_ANY);
|
Replace(nspace, NSPACE_SEPARATOR, "_", DOH_REPLACE_ANY);
|
||||||
if (Len(nspace) > 0)
|
if (Len(nspace) > 0)
|
||||||
dirclassname = NewStringf("SwigDirector_%s_%s", nspace, classname);
|
dirclassname = NewStringf("SwigDirector_%s_%s", nspace, classname);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -857,7 +857,7 @@ int Swig_MethodToFunction(Node *n, const_String_or_char_ptr nspace, String *clas
|
||||||
String *qualifier = Getattr(n, "qualifier");
|
String *qualifier = Getattr(n, "qualifier");
|
||||||
String *directorScope = NewString(nspace);
|
String *directorScope = NewString(nspace);
|
||||||
|
|
||||||
Replace(directorScope, ".", "_", DOH_REPLACE_ANY);
|
Replace(directorScope, NSPACE_SEPARATOR, "_", DOH_REPLACE_ANY);
|
||||||
|
|
||||||
/* If smart pointer without const overload or mutable method, change self dereferencing */
|
/* If smart pointer without const overload or mutable method, change self dereferencing */
|
||||||
if (flags & CWRAP_SMART_POINTER) {
|
if (flags & CWRAP_SMART_POINTER) {
|
||||||
|
|
@ -1116,7 +1116,7 @@ int Swig_ConstructorToFunction(Node *n, const_String_or_char_ptr nspace, String
|
||||||
int use_director;
|
int use_director;
|
||||||
String *directorScope = NewString(nspace);
|
String *directorScope = NewString(nspace);
|
||||||
|
|
||||||
Replace(directorScope, ".", "_", DOH_REPLACE_ANY);
|
Replace(directorScope, NSPACE_SEPARATOR, "_", DOH_REPLACE_ANY);
|
||||||
|
|
||||||
use_director = Swig_directorclass(n);
|
use_director = Swig_directorclass(n);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue