From 923ab0734d7374c505f314fef73909c405771ff8 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 19 May 2014 22:07:04 +0200 Subject: [PATCH] Move code where it belongs It is declared in Dimension.h, so the implementation should be in Dimension.cpp. --- src/CoordCache.cpp | 10 ---------- src/Dimension.cpp | 11 +++++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/CoordCache.cpp b/src/CoordCache.cpp index 686503979d..827697e552 100644 --- a/src/CoordCache.cpp +++ b/src/CoordCache.cpp @@ -23,16 +23,6 @@ namespace lyx { -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); -} - - // just a helper to be able to set a breakpoint void lyxbreaker(void const * data, const char * hint, int size) { diff --git a/src/Dimension.cpp b/src/Dimension.cpp index b1cd41ed9a..ea1d24426d 100644 --- a/src/Dimension.cpp +++ b/src/Dimension.cpp @@ -12,6 +12,8 @@ #include "Dimension.h" +#include "support/lassert.h" + namespace lyx { void Dimension::operator+=(Dimension const & dim) @@ -23,4 +25,13 @@ void Dimension::operator+=(Dimension const & dim) wid += dim.wid; } + +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); +} + } // namespace lyx