summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2019-05-28 09:42:48 +0000
committerShlomi Fish <shlomif@shlomifish.org>2019-06-06 12:57:27 +0000
commitdd680d1500974fb3bdd55f99a4640ab681a3f288 (patch)
treee1f5730d6b96366fee0097f4928caead5ddeea5c /src/ui
parentRefactoring: call setAttribute() directly. (diff)
downloadinkscape-dd680d1500974fb3bdd55f99a4640ab681a3f288.tar.gz
inkscape-dd680d1500974fb3bdd55f99a4640ab681a3f288.zip
Style fixes.
Thanks to @Qantas94Heavy 's comments. ---- I hereby disclaim any implicit or explicit ownership of my changes in this changeset, and put them under a multiple licence consisting of your choice of one of more of: - The CC0 / Public Domain - https://creativecommons.org/choose/zero/ . - The MIT / Expat license - https://en.wikipedia.org/wiki/MIT_License - The default licence of your project - The https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License - version 2.1 or higher - The https://en.wikipedia.org/wiki/GNU_General_Public_License - version 2 or higher - Any licence in the 2018-Aug-27 popular licenses list of https://opensource.org/licenses - The https://en.wikipedia.org/wiki/Apache_License version 2.0 or later - The https://en.wikipedia.org/wiki/Artistic_License version 2.0 or later - The https://en.wikipedia.org/wiki/ISC_license - The https://opensource.org/licenses/BSD-2-Clause Crediting me will be nice, but not mandatory, and you can change the licence of the project without needing my permission.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/filter-effects-dialog.cpp2
-rw-r--r--src/ui/dialog/selectordialog.cpp2
-rw-r--r--src/ui/dialog/svg-fonts-dialog.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp
index 23f0acb9f..48398e716 100644
--- a/src/ui/dialog/filter-effects-dialog.cpp
+++ b/src/ui/dialog/filter-effects-dialog.cpp
@@ -1116,7 +1116,7 @@ private:
SPFilterPrimitive* prim = _dialog._primitive_list.get_selected();
if(prim) {
- _funcNode->setAttribute( "type", _type.get_as_attribute() );
+ _funcNode->setAttribute("type", _type.get_as_attribute());
SPFilter* filter = _dialog._filter_modifier.get_selected_filter();
filter->requestModified(SP_OBJECT_MODIFIED_FLAG);
diff --git a/src/ui/dialog/selectordialog.cpp b/src/ui/dialog/selectordialog.cpp
index e99f35df2..d44528df1 100644
--- a/src/ui/dialog/selectordialog.cpp
+++ b/src/ui/dialog/selectordialog.cpp
@@ -838,7 +838,7 @@ void SelectorDialog::_insertClass(const std::vector<SPObject *>& objVec, const G
}
}
if (add) {
- obj->setAttribute("class", classAttr + " " + className );
+ obj->setAttribute("class", classAttr + " " + className);
}
}
}
diff --git a/src/ui/dialog/svg-fonts-dialog.cpp b/src/ui/dialog/svg-fonts-dialog.cpp
index ad6bc25a4..c81b04030 100644
--- a/src/ui/dialog/svg-fonts-dialog.cpp
+++ b/src/ui/dialog/svg-fonts-dialog.cpp
@@ -209,7 +209,7 @@ void SvgFontsDialog::AttrSpin::on_attr_changed(){
if(name && o) {
std::ostringstream temp;
temp << this->spin.get_value();
- o->setAttribute((const gchar*) name, temp.str() );
+ o->setAttribute(name, temp.str());
o->parent->requestModified(SP_OBJECT_MODIFIED_FLAG);
Glib::ustring undokey = "svgfonts:";