diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/object/sp-offset.cpp | 12 | ||||
| -rw-r--r-- | src/ui/dialog/filter-effects-dialog.cpp | 2 | ||||
| -rw-r--r-- | src/ui/dialog/selectordialog.cpp | 2 | ||||
| -rw-r--r-- | src/ui/dialog/svg-fonts-dialog.cpp | 2 | ||||
| -rw-r--r-- | src/widgets/gradient-vector.cpp | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/src/object/sp-offset.cpp b/src/object/sp-offset.cpp index b5965813e..667fdf9c3 100644 --- a/src/object/sp-offset.cpp +++ b/src/object/sp-offset.cpp @@ -118,8 +118,8 @@ void SPOffset::build(SPDocument *document, Inkscape::XML::Node *repr) { //XML Tree being used directly here (as object->getRepr) //in all the below lines in the block while it shouldn't be. gchar const *oldA = this->getRepr()->attribute("sodipodi:radius"); - this->setAttribute("inkscape:radius",oldA); - this->setAttribute("sodipodi:radius",nullptr); + this->setAttribute("inkscape:radius", oldA); + this->setAttribute("sodipodi:radius", nullptr); this->readAttr( "inkscape:radius" ); } @@ -128,8 +128,8 @@ void SPOffset::build(SPDocument *document, Inkscape::XML::Node *repr) { this->readAttr( "inkscape:original" ); } else { gchar const *oldA = this->getRepr()->attribute("sodipodi:original"); - this->setAttribute("inkscape:original",oldA); - this->setAttribute("sodipodi:original",nullptr); + this->setAttribute("inkscape:original", oldA); + this->setAttribute("sodipodi:original", nullptr); this->readAttr( "inkscape:original" ); } @@ -148,11 +148,11 @@ void SPOffset::build(SPDocument *document, Inkscape::XML::Node *repr) { nA[0]='#'; nA[lA+1]=0; - this->setAttribute("xlink:href",nA); + this->setAttribute("xlink:href", nA); free(nA); - this->setAttribute("inkscape:href",nullptr); + this->setAttribute("inkscape:href", nullptr); } this->readAttr( "xlink:href" ); 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:"; diff --git a/src/widgets/gradient-vector.cpp b/src/widgets/gradient-vector.cpp index cb4eb7a87..677936ba5 100644 --- a/src/widgets/gradient-vector.cpp +++ b/src/widgets/gradient-vector.cpp @@ -734,7 +734,7 @@ static void sp_grd_ed_add_stop(GtkWidget */*widget*/, GtkWidget *vb) sp_svg_write_color(c, sizeof(c), cnew); gdouble opacity = static_cast<gdouble>(SP_RGBA32_A_F(cnew)); os << "stop-color:" << c << ";stop-opacity:" << opacity <<";"; - newstop->setAttribute("style", os.str().c_str()); + newstop->setAttribute("style", os.str()); sp_repr_set_css_double( newstop->getRepr(), "offset", (double)newstop->offset); sp_gradient_vector_widget_load_gradient(vb, gradient); |
