Mesh: modernize C++11

* remove redundant void-arg
* use nullptr
* replace deprecated headers
This commit is contained in:
wmayer
2022-01-26 18:05:02 +01:00
parent 213311524e
commit 59e605e6b8
88 changed files with 651 additions and 651 deletions

View File

@@ -39,9 +39,9 @@ using namespace MeshCore;
PROPERTY_SOURCE(Mesh::Export, App::DocumentObject)
Export::Export(void)
Export::Export()
{
ADD_PROPERTY(Source ,(0));
ADD_PROPERTY(Source ,(nullptr));
ADD_PROPERTY(FileName,(""));
ADD_PROPERTY(Format ,(""));
}
@@ -59,7 +59,7 @@ short Export::mustExecute() const
return 0;
}
App::DocumentObjectExecReturn *Export::execute(void)
App::DocumentObjectExecReturn *Export::execute()
{
Mesh::Feature *pcFeat = dynamic_cast<Mesh::Feature*>(Source.getValue());
if(!pcFeat || pcFeat->isError()) {