summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-05-29 09:20:37 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-06-02 09:50:17 +0000
commit930ca25606ddefe59afa37f32c823bedcea8ed30 (patch)
tree13c77bfb2faa8e78fc9512dc54c32f640b25e1d7 /src/style.cpp
parentFixed UI issues (diff)
downloadinkscape-930ca25606ddefe59afa37f32c823bedcea8ed30.tar.gz
inkscape-930ca25606ddefe59afa37f32c823bedcea8ed30.zip
Fixing coding style
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp11
1 files changed, 6 insertions, 5 deletions
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<gchar *>(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);
}
}