remove redundant void from Base

This commit is contained in:
berniev
2022-07-31 21:13:41 +10:00
committed by wwmayer
parent e2805adb1b
commit 4043d049bc
7 changed files with 13 additions and 13 deletions

View File

@@ -32,7 +32,7 @@
using namespace Base;
// returns a string which represent the object e.g. when printed in python
std::string TypePy::representation(void) const
std::string TypePy::representation() const
{
std::stringstream str;
str << "<class '" << getBaseTypePtr()->getName() << "'>";
@@ -243,17 +243,17 @@ PyObject* TypePy::createInstanceByName (PyObject *args)
return createPyObject(base);
}
Py::String TypePy::getName(void) const
Py::String TypePy::getName() const
{
return Py::String(std::string(getBaseTypePtr()->getName()));
}
Py::Long TypePy::getKey(void) const
Py::Long TypePy::getKey() const
{
return Py::Long(static_cast<long>(getBaseTypePtr()->getKey()));
}
Py::String TypePy::getModule(void) const
Py::String TypePy::getModule() const
{
std::string module(getBaseTypePtr()->getName());
std::string::size_type pos = module.find_first_of("::");