App: Apply clang format (part 1)
This commit is contained in:
@@ -33,17 +33,17 @@ PROPERTY_SOURCE(App::TextDocument, App::DocumentObject)
|
||||
|
||||
TextDocument::TextDocument()
|
||||
{
|
||||
ADD_PROPERTY_TYPE(
|
||||
Text, (""), 0, App::Prop_Hidden,
|
||||
"Content of the document.");
|
||||
ADD_PROPERTY_TYPE(Text, (""), 0, App::Prop_Hidden, "Content of the document.");
|
||||
}
|
||||
|
||||
void TextDocument::onChanged(const Property* prop)
|
||||
{
|
||||
if (prop == &Text)
|
||||
if (prop == &Text) {
|
||||
textChanged();
|
||||
else if (prop == &Label)
|
||||
}
|
||||
else if (prop == &Label) {
|
||||
labelChanged();
|
||||
}
|
||||
DocumentObject::onChanged(prop);
|
||||
}
|
||||
|
||||
@@ -52,12 +52,12 @@ const char* TextDocument::getViewProviderName() const
|
||||
return "Gui::ViewProviderTextDocument";
|
||||
}
|
||||
|
||||
boost::signals2::connection TextDocument::connectText(const TextSlot &sub)
|
||||
boost::signals2::connection TextDocument::connectText(const TextSlot& sub)
|
||||
{
|
||||
return textChanged.connect(sub);
|
||||
}
|
||||
|
||||
boost::signals2::connection TextDocument::connectLabel(const TextSlot &sub)
|
||||
boost::signals2::connection TextDocument::connectLabel(const TextSlot& sub)
|
||||
{
|
||||
return labelChanged.connect(sub);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user