diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-06-20 14:42:18 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-07-08 21:04:15 +0000 |
| commit | 9df35b1574826f2cc82b311df5aa9de3b116e28e (patch) | |
| tree | e9fe3b1897807184b4573c691dbd8252cc6e6078 /src/inkscape.cpp | |
| parent | Add coloring default to theme (diff) | |
| download | inkscape-9df35b1574826f2cc82b311df5aa9de3b116e28e.tar.gz inkscape-9df35b1574826f2cc82b311df5aa9de3b116e28e.zip | |
Coding Style Fixes
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp index 418285c4c..503c33f33 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -59,8 +59,8 @@ #include "svg/svg-color.h" -#include "object/sp-style-elem.h" #include "object/sp-root.h" +#include "object/sp-style-elem.h" #include "ui/dialog/debug.h" #include "ui/tools/tool-base.h" @@ -504,7 +504,7 @@ Glib::ustring Application::get_symbolic_colors() Inkscape::Preferences *prefs = Inkscape::Preferences::get(); Glib::ustring themeiconname = prefs->getString("/theme/iconTheme"); guint32 colorsetbase = 0x2E3436ff; - guint32 colorsetbase_inverse = colorsetbase^ 0xffffff00; + guint32 colorsetbase_inverse = colorsetbase ^ 0xffffff00; guint32 colorsetsuccess = 0x4AD589ff; guint32 colorsetwarning = 0xF57900ff; guint32 colorseterror = 0xcc0000ff; @@ -541,8 +541,7 @@ Glib::ustring Application::get_symbolic_colors() /** * \brief Add our CSS style sheets */ -void -Application::add_gtk_css() +void Application::add_gtk_css() { using namespace Inkscape::IO::Resource; // Add style sheet (GTK3) @@ -629,23 +628,23 @@ void Application::readStyleSheets(bool forceupd) { SPDocument *document = SP_ACTIVE_DOCUMENT; Inkscape::XML::Node *root = document->getReprRoot(); - std::vector <Inkscape::XML::Node *> styles; + std::vector<Inkscape::XML::Node *> styles; for (unsigned i = 0; i < root->childCount(); ++i) { - Inkscape::XML::Node * child = root->nthChild(i); - if (child && strcmp(child->name(),"svg:style") == 0) { - styles.insert(styles.begin(),child); + Inkscape::XML::Node *child = root->nthChild(i); + if (child && strcmp(child->name(), "svg:style") == 0) { + styles.insert(styles.begin(), child); } } if (forceupd || styles.size() > 1) { document->setStyleSheet(nullptr); for (auto style : styles) { - gchar const * id = style->attribute("id"); + gchar const *id = style->attribute("id"); if (id) { SPStyleElem *styleelem = dynamic_cast<SPStyleElem *>(document->getObjectById(id)); styleelem->read_content(); } } - document->getRoot()->emitModified( SP_OBJECT_MODIFIED_CASCADE ); + document->getRoot()->emitModified(SP_OBJECT_MODIFIED_CASCADE); } } |
