From 930ca25606ddefe59afa37f32c823bedcea8ed30 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Wed, 29 May 2019 11:20:37 +0200 Subject: Fixing coding style --- src/style.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/style.cpp') diff --git a/src/style.cpp b/src/style.cpp index ac4f1f37e..17ad85dc3 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -721,8 +721,8 @@ SPStyle::readIfUnset(SPAttributeEnum id, gchar const *val, SPStyleSrc const &sou } // return if is seted property -bool -SPStyle::isSet(SPAttributeEnum id) { +bool SPStyle::isSet(SPAttributeEnum id) +{ bool set = false; switch (id) { case SP_PROP_CLIP_PATH: @@ -730,7 +730,8 @@ SPStyle::isSet(SPAttributeEnum id) { case SP_PROP_MASK: return set; case SP_PROP_FILTER: - if( !filter.inherit ) set = filter.set; + if (!filter.inherit) + set = filter.set; return set; case SP_PROP_COLOR_INTERPOLATION: // We read it but issue warning @@ -912,11 +913,11 @@ SPStyle::_mergeDecl( CRDeclaration const *const decl, SPStyleSrc const &source gchar *const str_value = reinterpret_cast(str_value_unsigned); // Add "!important" rule if necessary as this is not handled by cr_term_to_string(). - gchar const * important = decl->important ? " !important" : ""; + gchar const *important = decl->important ? " !important" : ""; Inkscape::CSSOStringStream os; os << str_value << important; - readIfUnset( prop_idx, os.str().c_str(), source ); + readIfUnset(prop_idx, os.str().c_str(), source); g_free(str_value); } } -- cgit v1.2.3