Kaydet (Commit) 440fd8fa authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242516 reorg to silence Arguments in wrong order

Change-Id: I0d7a93461f37d5ca18605cd94b630d70d871adfb
üst 148cde5f
......@@ -110,20 +110,22 @@ namespace svt
//= NormalizedArea
NormalizedArea::NormalizedArea()
:m_aReference()
{
}
NormalizedArea::NormalizedArea( const Rectangle& i_rReference, const bool i_bIsVertical )
:m_aReference( i_bIsVertical ? Rectangle( i_rReference.TopLeft(), Size( i_rReference.GetHeight(), i_rReference.GetWidth() ) ) : i_rReference )
: m_aReference(i_rReference)
{
if (i_bIsVertical)
{
const long nRotatedWidth = i_rReference.GetHeight();
const long nRotatedHeight = i_rReference.GetWidth();
m_aReference = Rectangle(i_rReference.TopLeft(), Size(nRotatedWidth, nRotatedHeight));
}
}
Rectangle NormalizedArea::getTransformed( const Rectangle& i_rArea, const TabAlignment i_eTargetAlignment ) const
{
Rectangle aResult( i_rArea );
......
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