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

@@ -43,7 +43,7 @@ public:
~ConsoleObserverFile() override;
void SendLog(const std::string& message, LogStyle level) override;
const char* Name(void) override {return "File";}
const char* Name() override {return "File";}
protected:
Base::ofstream cFileStream;
@@ -58,7 +58,7 @@ public:
ConsoleObserverStd();
~ConsoleObserverStd() override;
void SendLog(const std::string& message, LogStyle level) override;
const char* Name(void) override {return "Console";}
const char* Name() override {return "Console";}
protected:
bool useColorStderr;
private:

View File

@@ -392,7 +392,7 @@ Py::Object Vector2dPy::projectToLine(const Py::Tuple& args)
}
PYCXX_VARARGS_METHOD_DECL(Vector2dPy, projectToLine)
void Vector2dPy::init_type(void)
void Vector2dPy::init_type()
{
behaviors().name( "Vector2d" );
behaviors().doc( "Vector2d class" );

View File

@@ -105,7 +105,7 @@ public:
/// this function returns the stack trace
const std::string &getStackTrace() const {return _stackTrace;}
const std::string &getErrorType() const {return _errorType;}
virtual PyObject *getPyExceptionType(void) const override {return _exceptionType;}
virtual PyObject *getPyExceptionType() const override {return _exceptionType;}
void ReportException () const override;
/// Sets the Python error indicator and an error message
virtual void setPyException() const override;

View File

@@ -365,7 +365,7 @@ Base::Reference<ParameterGrp> ParameterGrp::_GetGroup(const char* Name)
return rParamGrp;
}
std::vector<Base::Reference<ParameterGrp> > ParameterGrp::GetGroups(void)
std::vector<Base::Reference<ParameterGrp> > ParameterGrp::GetGroups()
{
Base::Reference<ParameterGrp> rParamGrp;
std::vector<Base::Reference<ParameterGrp> > vrParamGrp;
@@ -905,7 +905,7 @@ bool ParameterGrp::RenameGrp(const char* OldName, const char* NewName)
return true;
}
void ParameterGrp::Clear(void)
void ParameterGrp::Clear()
{
std::vector<DOMNode*> vecNodes;

View File

@@ -420,7 +420,7 @@ Py::Object RotationPy::getRawAxis() const
return Py::Vector(axis);
}
Py::Object RotationPy::getAxis(void) const
Py::Object RotationPy::getAxis() const
{
Base::Vector3d axis; double angle;
this->getRotationPtr()->getValue(axis, angle);

View File

@@ -60,10 +60,10 @@ public:
// operators
inline Vector2d& operator= (const Vector2d &v);
inline bool operator== (const Vector2d &v) const;
inline Vector2d operator+ (void) const;
inline Vector2d operator+ () const;
inline Vector2d operator+ (const Vector2d &v) const;
inline Vector2d& operator+= (const Vector2d &v);
inline Vector2d operator- (void) const;
inline Vector2d operator- () const;
inline Vector2d operator- (const Vector2d &v) const;
inline Vector2d& operator-= (const Vector2d &v);
inline Vector2d operator* (double c) const;

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("::");