diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2018-01-04 07:00:26 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2018-01-04 07:00:26 +0000 |
commit | cd9b7c3c34def07db975a2b706e425afc6500adb (patch) | |
tree | 569db5d665504a4d06d381f43adcd8914d78bf69 /Lib/scilab | |
parent | 0beec3cf7306d7b9d6fe771012bb9421877a9a82 (diff) | |
download | swig-cd9b7c3c34def07db975a2b706e425afc6500adb.tar.gz |
std_basic_string.i fixes
- Remove python code from octave's std_basic_string.i
- Correctly return an error to fix error handling when using std::basic_string in
overloaded methods - issue #1171.
Diffstat (limited to 'Lib/scilab')
-rw-r--r-- | Lib/scilab/std_basic_string.i | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/scilab/std_basic_string.i b/Lib/scilab/std_basic_string.i index 43b660db6..b57353816 100644 --- a/Lib/scilab/std_basic_string.i +++ b/Lib/scilab/std_basic_string.i @@ -21,8 +21,7 @@ SWIG_AsPtr_dec(std::basic_string<char>)(int _iVar, std::basic_string<char> **_ps delete[] buf; } return SWIG_NEWOBJ; - } - else { + } else { if (_pstValue) { *_pstValue = NULL; } |