From: Ovidiu Mircescu Date: Thu, 14 Nov 2019 12:55:31 +0000 (+0100) Subject: Useless cast. X-Git-Tag: EMC2P_V_1_2_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e47df68edc4fa40f467838a5b0fde212e5635897;p=modules%2Fyacs.git Useless cast. --- diff --git a/src/runtime/TypeConversions.cxx b/src/runtime/TypeConversions.cxx index 9f2c738ee..2c76e0e7a 100644 --- a/src/runtime/TypeConversions.cxx +++ b/src/runtime/TypeConversions.cxx @@ -793,7 +793,7 @@ namespace YACS // the objref is used by Python as a string (prefix:value) keep it as a string Py_ssize_t size; std::string s; - const char *ptr = (char*) PyUnicode_AsUTF8AndSize(o, &size); + const char *ptr = PyUnicode_AsUTF8AndSize(o, &size); if (!ptr) throw YACS::ENGINE::ConversionException("Conversion from PyUnicode to string failed"); s.assign(ptr, size); @@ -846,7 +846,7 @@ namespace YACS } Py_ssize_t size; std::string mystr; - const char *ptr = (char*) PyUnicode_AsUTF8AndSize(pystring, &size); + const char *ptr = PyUnicode_AsUTF8AndSize(pystring, &size); if (!ptr) throw YACS::ENGINE::ConversionException("Conversion from PyUnicode to string failed"); mystr.assign(ptr, size);