Mod: modernize C++: replace 'typedef' with 'using'

This commit is contained in:
wmayer
2022-08-29 16:21:46 +02:00
parent 23961706be
commit bff8a73ba6
23 changed files with 32 additions and 32 deletions

View File

@@ -318,8 +318,8 @@ Py::Object StdMeshers_AutomaticLengthPy::getFineness(const Py::Tuple& args)
}
namespace Py {
typedef ExtensionObject<Fem::FemMeshPy> FemMesh;
typedef ExtensionObject<Part::TopoShapePy> TopoShape;
using FemMesh = ExtensionObject<Fem::FemMeshPy>;
using TopoShape = ExtensionObject<Part::TopoShapePy>;
template<> bool FemMesh::accepts (PyObject *pyob) const
{
return (pyob && PyObject_TypeCheck(pyob, &(Fem::FemMeshPy::Type)));