From: Alexandru Gagniuc Date: Thu, 30 Apr 2015 23:18:46 +0000 (-0700) Subject: python: classes.i: Declare strings with std::string X-Git-Tag: libsigrok-0.4.0~514 X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=682fb08c88af64181a56c2db14ca3cef323c3ead python: classes.i: Declare strings with std::string This makes it consistent with the rest of the string declarations in this file, all of which use std::string. --- diff --git a/bindings/python/sigrok/core/classes.i b/bindings/python/sigrok/core/classes.i index 12b01a52..12e7df32 100644 --- a/bindings/python/sigrok/core/classes.i +++ b/bindings/python/sigrok/core/classes.i @@ -213,7 +213,7 @@ typedef guint pyg_flags_type; if (!PyCallable_Check($input)) SWIG_exception(SWIG_TypeError, "Expected a callable Python object"); - $1 = [=] (const sigrok::LogLevel *loglevel, string message) { + $1 = [=] (const sigrok::LogLevel *loglevel, std::string message) { auto gstate = PyGILState_Ensure(); auto log_obj = SWIG_NewPointerObj(