commit fd5cfc51010c45bd3d7a400dca24b08eb94b319b
Author: Georg Baum <[email protected]>
Date:   Sat Oct 10 21:38:17 2015 +0200

    Fix LASSERT correction
    
    Found bx cppcheck:
    (style) Assignment of function parameter has no effect outside the function.

diff --git a/src/Dimension.cpp b/src/Dimension.cpp
index ea1d244..5ca5f5f 100644
--- a/src/Dimension.cpp
+++ b/src/Dimension.cpp
@@ -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

Reply via email to