summaryrefslogtreecommitdiffstats
path: root/clang_format_diff
blob: fa4e0bee3e2c6c583ab8f7ff5f7b2a90f3f44be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- src/live_effects/lpe-clone-original.cpp	(before formatting)
+++ src/live_effects/lpe-clone-original.cpp	(after formatting)
@@ -36,13 +36,16 @@
 };
 static const Util::EnumDataConverter<Clonelpemethod> CLMConverter(ClonelpemethodData, CLM_END);
 
-LPECloneOriginal::LPECloneOriginal(LivePathEffectObject *lpeobject) :
-    Effect(lpeobject),
-    linkeditem(_("Linked Item:"), _("Item from which to take the original data"), "linkeditem", &wr, this),
-    method(_("Shape linked"), _("Shape linked"), "method", CLMConverter, &wr, this, CLM_D),
-    attributes("Attributes linked", "Attributes linked, comma separated attributes like trasform, X, Y...", "attributes", &wr, this,""),
-    style_attributes("Style attributes linked", "Style attributes linked, comma separated attributes like fill, filter, opacity...", "style_attributes", &wr, this,""),
-    allow_transforms(_("Allow transforms"), _("Allow transforms"), "allow_transforms", &wr, this, true)
+LPECloneOriginal::LPECloneOriginal(LivePathEffectObject *lpeobject)
+    : Effect(lpeobject)
+    , linkeditem(_("Linked Item:"), _("Item from which to take the original data"), "linkeditem", &wr, this)
+    , method(_("Shape linked"), _("Shape linked"), "method", CLMConverter, &wr, this, CLM_D)
+    , attributes("Attributes linked", "Attributes linked, comma separated attributes like trasform, X, Y...",
+                 "attributes", &wr, this, "")
+    , style_attributes("Style attributes linked",
+                       "Style attributes linked, comma separated attributes like fill, filter, opacity...",
+                       "style_attributes", &wr, this, "")
+    , allow_transforms(_("Allow transforms"), _("Allow transforms"), "allow_transforms", &wr, this, true)
 {
     //0.92 compatibility
     const gchar * linkedpath = this->getRepr()->attribute("linkedpath");
@@ -175,11 +178,8 @@
                     dest->getRepr()->setAttribute(attribute, nullptr);
                 }
             } else {
-                if (!(SP_IS_GROUP(dest) && 
-                      dest->getId() == sp_lpe_item->getId() &&
-                      !strcmp(attribute, "transform") && 
-                      allow_transforms))
-                {
+                if (!(SP_IS_GROUP(dest) && dest->getId() == sp_lpe_item->getId() && !strcmp(attribute, "transform") &&
+                      allow_transforms)) {
                     dest->getRepr()->setAttribute(attribute, origin->getRepr()->attribute(attribute));
                 }
             }