better warning message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e7c1108ed1
commit
176d86f1d0
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ namespace std {
|
|||
throw Swig::DirectorTypeMismatchException("string expected");
|
||||
}
|
||||
|
||||
%typemap(directorout,warning="470:Using thread unsafe wrapping, consider using a lvalue return type.") const string & {
|
||||
%typemap(directorout,warning="470:Using thread/reentrant unsafe wrapping, consider using a lvalue return type.") const string & {
|
||||
if (TYPE($input) == T_STRING) {
|
||||
static std::string temp = std::string(StringValuePtr($input));
|
||||
$result = &temp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue