summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/qdom.cpp4
-rw-r--r--src/xml/qsvgdevice.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/xml/qdom.cpp b/src/xml/qdom.cpp
index 44f07346..64658c1c 100644
--- a/src/xml/qdom.cpp
+++ b/src/xml/qdom.cpp
@@ -3655,8 +3655,8 @@ static bool isXmlChar(const TQChar &c)
return uc == 0x9
|| uc == 0xA
|| uc == 0xD
- || 0x20 <= uc && uc <= 0xD7FF
- || 0xE000 <= uc && uc <= 0xFFFD;
+ || ( 0x20 <= uc && uc <= 0xD7FF )
+ || ( 0xE000 <= uc && uc <= 0xFFFD );
}
/*
diff --git a/src/xml/qsvgdevice.cpp b/src/xml/qsvgdevice.cpp
index 10690559..9acaf4f9 100644
--- a/src/xml/qsvgdevice.cpp
+++ b/src/xml/qsvgdevice.cpp
@@ -1433,8 +1433,8 @@ void TQSvgDevice::drawPath( const TQString &data )
// if possible, reflect last control point if smooth shorthand
if ( mode == 6 || mode == 8 ) { // smooth 'S' and 'T'
bool cont = mode == lastMode ||
- mode == 6 && lastMode == 5 || // 'S' and 'C'
- mode == 8 && lastMode == 7; // 'T' and 'Q'
+ ( mode == 6 && lastMode == 5 ) || // 'S' and 'C'
+ ( mode == 8 && lastMode == 7 ); // 'T' and 'Q'
x = cont ? 2*x-controlX : x;
y = cont ? 2*y-controlY : y;
quad.setPoint( 1, int(x), int(y) );