summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 666500c)
raw | patch | inline | side by side (parent: 666500c)
author | JucaBlues <JucaBlues@users.sourceforge.net> | |
Mon, 9 Feb 2009 02:18:15 +0000 (02:18 +0000) | ||
committer | JucaBlues <JucaBlues@users.sourceforge.net> | |
Mon, 9 Feb 2009 02:18:15 +0000 (02:18 +0000) |
suggested parentheses
src/dialogs/swatches.cpp | patch | blob | history | |
src/persp3d.cpp | patch | blob | history | |
src/sp-ellipse.cpp | patch | blob | history | |
src/trace/imagemap.cpp | patch | blob | history |
index 1a0db9a8a1c0c571b9100c70824a2facf8b24bd4..0d9daaf604f36f21bba2126cf948dd17c0e5c110 100644 (file)
--- a/src/dialogs/swatches.cpp
+++ b/src/dialogs/swatches.cpp
str++;
}
str--;
- while ( str > ret && ( *str == ' ' || *str == '\t' ) || *str == '\r' || *str == '\n' ) {
+ while ( str > ret && (( *str == ' ' || *str == '\t' ) || *str == '\r' || *str == '\n') ) {
*str-- = 0;
}
return ret;
diff --git a/src/persp3d.cpp b/src/persp3d.cpp
index 71d12619bc5d60582611eb4e59f87f0ae738e036..916e9f25f421fe071452b070e4088abfb2cf9bdf 100644 (file)
--- a/src/persp3d.cpp
+++ b/src/persp3d.cpp
static void
persp3d_update(SPObject *object, SPCtx *ctx, guint flags)
{
- if (flags & SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG) {
+ if (flags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) {
/* TODO: Should we update anything here? */
diff --git a/src/sp-ellipse.cpp b/src/sp-ellipse.cpp
index b5f3df1cb83567d798b9c37bfdcacee0269b0c40..ce1343272f9612da961c4b25c1f7ae26998521c7 100644 (file)
--- a/src/sp-ellipse.cpp
+++ b/src/sp-ellipse.cpp
static void
sp_arc_modified(SPObject *object, guint flags)
{
- if (flags & SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG) {
+ if (flags & (SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG | SP_OBJECT_VIEWPORT_MODIFIED_FLAG)) {
sp_shape_set_shape((SPShape *) object);
}
diff --git a/src/trace/imagemap.cpp b/src/trace/imagemap.cpp
index a89cfaa056ed721000228eb7819b73b77fc18a8c..a9ad9b9c88f00b006412c5bfb1970c658305ce1c 100644 (file)
--- a/src/trace/imagemap.cpp
+++ b/src/trace/imagemap.cpp
static void ppSetPixel(PackedPixelMap *me, int x, int y, int r, int g, int b)
{
unsigned long *pix = me->rows[y] + x;
- *pix = ((unsigned long)r)<<16 & 0xff0000L |
- ((unsigned long)g)<< 8 & 0x00ff00L |
- ((unsigned long)b) & 0x0000ffL;
+ *pix = (((unsigned long)r)<<16 & 0xff0000L) |
+ (((unsigned long)g)<< 8 & 0x00ff00L) |
+ (((unsigned long)b) & 0x0000ffL);
}
static void ppSetPixelLong(PackedPixelMap *me, int x, int y, unsigned long rgb)