summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-04-22 12:19:57 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-04-22 12:19:57 +0000
commit370881548b1d8f65def9aa03254316aa22c3b670 (patch)
treeb07e3f793a02731be6e486245bbfde998b6894d0 /src
parentfix warnings (diff)
downloadinkscape-370881548b1d8f65def9aa03254316aa22c3b670.tar.gz
inkscape-370881548b1d8f65def9aa03254316aa22c3b670.zip
define booleans as booleans (prevent future errors in comparisons)
(bzr r12297)
Diffstat (limited to 'src')
-rw-r--r--src/style.cpp2
-rw-r--r--src/style.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/style.cpp b/src/style.cpp
index ca89e6f65..479f30597 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -4358,7 +4358,7 @@ sp_style_write_ifilter(gchar *p, gint const len, gchar const *key,
}
SPIPaint::SPIPaint() :
- set(0),
+ set(false),
inherit(0),
currentcolor(0),
colorSet(0),
diff --git a/src/style.h b/src/style.h
index 534a6ae70..f456eaa61 100644
--- a/src/style.h
+++ b/src/style.h
@@ -136,11 +136,11 @@ struct SPILength {
/// Paint type internal to SPStyle.
struct SPIPaint {
- unsigned set : 1;
- unsigned inherit : 1;
- unsigned currentcolor : 1;
- unsigned int colorSet : 1;
- unsigned int noneSet : 1;
+ bool set; //todo check if other properties are also booleans
+ unsigned inherit;
+ unsigned currentcolor;
+ unsigned int colorSet;
+ unsigned int noneSet;
struct {
SPPaintServerReference *href;
SPColor color;