Part: Replace C cast
This commit is contained in:
committed by
Chris Hennes
parent
6dc262d44c
commit
acdfde774a
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user