From 5671dc8ab6169a476735e999413460ca28e8f238 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 3 Nov 2005 15:50:44 +0000 Subject: [PATCH] use new checkcodes,which should take precedence over plain C strings git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7793 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/typemaps/std_string.swg | 2 +- Lib/typemaps/std_wstring.swg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/typemaps/std_string.swg b/Lib/typemaps/std_string.swg index ef05606b4..ec44d39c5 100644 --- a/Lib/typemaps/std_string.swg +++ b/Lib/typemaps/std_string.swg @@ -15,7 +15,7 @@ namespace std class string; } -%typemaps_std_string(std::string, char, SWIG_AsCharPtrAndSize, SWIG_FromCharPtrAndSize, %checkcode(STRING)); +%typemaps_std_string(std::string, char, SWIG_AsCharPtrAndSize, SWIG_FromCharPtrAndSize, %checkcode(STDSTRING)); #else diff --git a/Lib/typemaps/std_wstring.swg b/Lib/typemaps/std_wstring.swg index 6b9702751..6dcf59976 100644 --- a/Lib/typemaps/std_wstring.swg +++ b/Lib/typemaps/std_wstring.swg @@ -15,7 +15,7 @@ namespace std class wstring; } -%typemaps_std_string(std::wstring, wchar_t, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, %checkcode(UNISTRING)); +%typemaps_std_string(std::wstring, wchar_t, SWIG_AsWCharPtrAndSize, SWIG_FromWCharPtrAndSize, %checkcode(STDUNISTRING)); #else