VC++ error/warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
62b2401d09
commit
1ecf5885a2
4 changed files with 9 additions and 9 deletions
|
|
@ -37,8 +37,8 @@
|
|||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
Tcl_Obj* SwigString_FromString(std::string s) {
|
||||
return Tcl_NewStringObj(s.data(), s.length());
|
||||
Tcl_Obj* SwigString_FromString(const std::string &s) {
|
||||
return Tcl_NewStringObj(s.data(), (int)s.length());
|
||||
}
|
||||
|
||||
int Tcl_GetBoolFromObj(Tcl_Interp *interp, Tcl_Obj *o, bool *val) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue