]> git.lyx.org Git - features.git/commitdiff
Fix LASSERT correction
authorGeorg Baum <baum@lyx.org>
Sat, 10 Oct 2015 19:38:17 +0000 (21:38 +0200)
committerGeorg Baum <baum@lyx.org>
Sat, 10 Oct 2015 19:38:17 +0000 (21:38 +0200)
Found bx cppcheck:
(style) Assignment of function parameter has no effect outside the function.

src/Dimension.cpp

index ea1d24426dbf96b4b738abf6929c8edefe94339a..5ca5f5f7b4d2a50798ccbbd93f19db597d9eb626 100644 (file)
@@ -28,10 +28,10 @@ void Dimension::operator+=(Dimension const & dim)
 
 Point::Point(int x, int y) : x_(x), y_(y)
 {
-       LASSERT(x > -1000000, x = -1000000);
-       LASSERT(x <  1000000, x =  1000000);
-       LASSERT(y > -1000000, y = -1000000);
-       LASSERT(y <  1000000, y =  1000000);
+       LASSERT(x > -1000000, x_ = -1000000);
+       LASSERT(x <  1000000, x_ =  1000000);
+       LASSERT(y > -1000000, y_ = -1000000);
+       LASSERT(y <  1000000, y_ =  1000000);
 }
 
 } // namespace lyx