Part: Replace C cast

This commit is contained in:
marioalexis
2022-06-17 12:12:09 -03:00
committed by Chris Hennes
parent 6dc262d44c
commit acdfde774a
10 changed files with 28 additions and 30 deletions

View File

@@ -122,7 +122,7 @@ void AttachEnginePy::setMode(Py::String arg)
{
try {
AttachEngine &attacher = *(this->getAttachEnginePtr());
std::string modeName = (std::string)arg;
std::string modeName = static_cast<std::string>(arg);
attacher.mapMode = attacher.getModeByName(modeName);
} ATTACHERPY_STDCATCH_ATTR;
}