Commit b2491fc9 authored by Frederik Schwarzer's avatar Frederik Schwarzer
Browse files

Undefined behaviour is undefined.

parent f544a29c
......@@ -83,21 +83,33 @@ Slide Move::slide() const
int Move::slideX1() const
{
if (m_slide.empty()) {
return 0;
}
return m_slide.front().x();
}
int Move::slideY1() const
{
if (m_slide.empty()) {
return 0;
}
return m_slide.front().y();
}
int Move::slideX2() const
{
if (m_slide.empty()) {
return 0;
}
return m_slide.back().x();
}
int Move::slideY2() const
{
if (m_slide.empty()) {
return 0;
}
return m_slide.back().y();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment