mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Move code where it belongs
It is declared in Dimension.h, so the implementation should be in Dimension.cpp.
This commit is contained in:
parent
35ec98bcb2
commit
923ab0734d
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user