[TD]CI clang warnings

This commit is contained in:
wandererfan
2022-08-23 15:32:13 -04:00
committed by WandererFan
parent c075a298ae
commit aa2b1b8392
246 changed files with 3944 additions and 4241 deletions

View File

@@ -47,21 +47,17 @@ DrawRichAnno::DrawRichAnno()
{
static const char *group = "Text Block";
ADD_PROPERTY_TYPE(AnnoParent,(nullptr),group,(App::PropertyType)(App::Prop_None),
ADD_PROPERTY_TYPE(AnnoParent, (nullptr), group, (App::PropertyType)(App::Prop_None),
"Object to which this annontation is attached");
ADD_PROPERTY_TYPE(AnnoText, (""), group, App::Prop_None, "Annotation text");
ADD_PROPERTY_TYPE(ShowFrame, (true), group, App::Prop_None, "Outline rectangle on/off");
ADD_PROPERTY_TYPE(MaxWidth, (-1.0), group, App::Prop_None, "Width limit before auto wrap");
Caption.setStatus(App::Property::Hidden,true);
Scale.setStatus(App::Property::Hidden,true);
ScaleType.setStatus(App::Property::Hidden,true);
Caption.setStatus(App::Property::Hidden, true);
Scale.setStatus(App::Property::Hidden, true);
ScaleType.setStatus(App::Property::Hidden, true);
}
DrawRichAnno::~DrawRichAnno()
{
}
void DrawRichAnno::onChanged(const App::Property* prop)
{
if (!isRestoring()) {
@@ -71,7 +67,7 @@ void DrawRichAnno::onChanged(const App::Property* prop)
requestPaint();
}
}
DrawView::onChanged(prop);
}
@@ -90,7 +86,7 @@ short DrawRichAnno::mustExecute() const
}
App::DocumentObjectExecReturn *DrawRichAnno::execute()
{
{
// Base::Console().Message("DRA::execute() - @ (%.3f, %.3f)\n", X.getValue(), Y.getValue());
if (!keepUpdated()) {
return App::DocumentObject::StdReturn;
@@ -127,7 +123,7 @@ PyObject *DrawRichAnno::getPyObject()
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new DrawRichAnnoPy(this),true);
PythonObject = Py::Object(new DrawRichAnnoPy(this), true);
}
return Py::new_reference_to(PythonObject);
}