App: Apply clang format (part 3)
This commit is contained in:
@@ -39,18 +39,21 @@
|
||||
* PropertyData in the extension chain, there is no parent property data.
|
||||
*/
|
||||
EXTENSION_TYPESYSTEM_SOURCE_P(App::Extension)
|
||||
|
||||
const App::PropertyData* App::Extension::extensionGetPropertyDataPtr()
|
||||
{
|
||||
return &propertyData;
|
||||
}
|
||||
|
||||
const App::PropertyData& App::Extension::extensionGetPropertyData() const
|
||||
{
|
||||
return propertyData;
|
||||
}
|
||||
|
||||
App::PropertyData App::Extension::propertyData;
|
||||
|
||||
void App::Extension::init()
|
||||
{
|
||||
|
||||
assert(Extension::classTypeId == Base::Type::badType() && "don't init() twice!");
|
||||
|
||||
/* Set up entry in the type system. */
|
||||
@@ -76,7 +79,6 @@ Extension::~Extension()
|
||||
|
||||
void Extension::initExtensionType(Base::Type type)
|
||||
{
|
||||
|
||||
m_extensionType = type;
|
||||
if (m_extensionType.isBad()) {
|
||||
throw Base::RuntimeError("Extension: Extension type not set");
|
||||
@@ -104,7 +106,6 @@ void Extension::initExtension(ExtensionContainer* obj)
|
||||
|
||||
PyObject* Extension::getExtensionPyObject()
|
||||
{
|
||||
|
||||
if (ExtensionPythonObject.is(Py::_None())) {
|
||||
// ref counter is set to 1
|
||||
auto grp = new ExtensionPy(this);
|
||||
@@ -115,7 +116,6 @@ PyObject* Extension::getExtensionPyObject()
|
||||
|
||||
std::string Extension::name() const
|
||||
{
|
||||
|
||||
if (m_extensionType.isBad()) {
|
||||
throw Base::RuntimeError("Extension::name: Extension type not set");
|
||||
}
|
||||
@@ -131,50 +131,42 @@ std::string Extension::name() const
|
||||
|
||||
Property* Extension::extensionGetPropertyByName(const char* name) const
|
||||
{
|
||||
|
||||
return extensionGetPropertyData().getPropertyByName(this, name);
|
||||
}
|
||||
|
||||
short int Extension::extensionGetPropertyType(const Property* prop) const
|
||||
{
|
||||
|
||||
return extensionGetPropertyData().getType(this, prop);
|
||||
}
|
||||
|
||||
short int Extension::extensionGetPropertyType(const char* name) const
|
||||
{
|
||||
|
||||
return extensionGetPropertyData().getType(this, name);
|
||||
}
|
||||
|
||||
const char* Extension::extensionGetPropertyName(const Property* prop) const
|
||||
{
|
||||
|
||||
return extensionGetPropertyData().getName(this, prop);
|
||||
}
|
||||
|
||||
const char* Extension::extensionGetPropertyGroup(const Property* prop) const
|
||||
{
|
||||
|
||||
return extensionGetPropertyData().getGroup(this, prop);
|
||||
}
|
||||
|
||||
const char* Extension::extensionGetPropertyGroup(const char* name) const
|
||||
{
|
||||
|
||||
return extensionGetPropertyData().getGroup(this, name);
|
||||
}
|
||||
|
||||
|
||||
const char* Extension::extensionGetPropertyDocumentation(const Property* prop) const
|
||||
{
|
||||
|
||||
return extensionGetPropertyData().getDocumentation(this, prop);
|
||||
}
|
||||
|
||||
const char* Extension::extensionGetPropertyDocumentation(const char* name) const
|
||||
{
|
||||
|
||||
return extensionGetPropertyData().getDocumentation(this, name);
|
||||
}
|
||||
|
||||
@@ -186,7 +178,6 @@ void Extension::extensionGetPropertyList(std::vector<Property*>& List) const
|
||||
|
||||
void Extension::extensionGetPropertyMap(std::map<std::string, Property*>& Map) const
|
||||
{
|
||||
|
||||
extensionGetPropertyData().getPropertyMap(this, Map);
|
||||
}
|
||||
|
||||
@@ -195,7 +186,6 @@ void Extension::initExtensionSubclass(Base::Type& toInit,
|
||||
const char* ParentName,
|
||||
Base::Type::instantiationMethod method)
|
||||
{
|
||||
|
||||
// don't init twice!
|
||||
assert(toInit == Base::Type::badType());
|
||||
// get the parent class
|
||||
@@ -207,7 +197,6 @@ void Extension::initExtensionSubclass(Base::Type& toInit,
|
||||
toInit = Base::Type::createType(parentType, ClassName, method);
|
||||
}
|
||||
|
||||
|
||||
bool Extension::extensionHandleChangedPropertyName(Base::XMLReader& reader,
|
||||
const char* TypeName,
|
||||
const char* PropName)
|
||||
@@ -217,7 +206,7 @@ bool Extension::extensionHandleChangedPropertyName(Base::XMLReader& reader,
|
||||
(void)PropName;
|
||||
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
bool Extension::extensionHandleChangedPropertyType(Base::XMLReader& reader,
|
||||
const char* TypeName,
|
||||
@@ -228,7 +217,7 @@ bool Extension::extensionHandleChangedPropertyType(Base::XMLReader& reader,
|
||||
(void)prop;
|
||||
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
namespace App
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user