Fix LASSERT correction

Found bx cppcheck:
(style) Assignment of function parameter has no effect outside the function.
This commit is contained in:
Georg Baum 2015-10-10 21:38:17 +02:00
parent d3b5260f45
commit fd5cfc5101

View File

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