cosmetic fixes

Sat, 19 Oct 2013 01:15:57 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 19 Oct 2013 01:15:57 +0300
changeset 519
63135a8abd41
parent 518
623c01862eb8
child 520
37d5da2f188e

cosmetic fixes

src/file.cpp file | annotate | diff | comparison | revisions
src/gldraw.cpp file | annotate | diff | comparison | revisions
--- a/src/file.cpp	Sat Oct 19 01:11:26 2013 +0300
+++ b/src/file.cpp	Sat Oct 19 01:15:57 2013 +0300
@@ -308,7 +308,7 @@
 		{	log ("Couldn't parse line #%1: %2", m_progress + 1, static_cast<LDError*> (obj)->reason);
 
 			if (m_warningsPointer)
-				(*m_warningsPointer) ++;
+				(*m_warningsPointer)++;
 		}
 
 		m_objs << obj;
@@ -320,7 +320,7 @@
 	}
 
 	// If we're done now, tell the environment we're done and stop.
-	if (i >= ( (int) lines().size()) - 1)
+	if (i >= ((int) lines().size()) - 1)
 	{	emit workDone();
 		setDone (true);
 		return;
--- a/src/gldraw.cpp	Sat Oct 19 01:11:26 2013 +0300
+++ b/src/gldraw.cpp	Sat Oct 19 01:15:57 2013 +0300
@@ -498,8 +498,8 @@
 	transformed[Y] = (m[4] * x) + (m[5] * y) + (m[6] * z) + m[7];
 	transformed[Z] = (m[8] * x) + (m[9] * y) + (m[10] * z) + m[11];
 
-	double rx = ( ( (transformed[axisX] * negXFac) + m_virtWidth + m_panX) * m_width) / (2 * m_virtWidth);
-	double ry = ( ( (transformed[axisY] * negYFac) - m_virtHeight + m_panY) * m_height) / (2 * m_virtHeight);
+	double rx = (((transformed[axisX] * negXFac) + m_virtWidth + m_panX) * m_width) / (2 * m_virtWidth);
+	double ry = (((transformed[axisY] * negYFac) - m_virtHeight + m_panY) * m_height) / (2 * m_virtHeight);
 
 	return QPoint (rx, -ry);
 }

mercurial