Move code where it belongs

It is declared in Dimension.h, so the implementation should be in
Dimension.cpp.
This commit is contained in:
Georg Baum 2014-05-19 22:07:04 +02:00
parent 35ec98bcb2
commit 923ab0734d
2 changed files with 11 additions and 10 deletions

View File

@ -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)
{

View File

@ -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