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

odd unnecessary cast

Change-Id: Ie0018e454ddc9158188c2f7fe856a60fa879b7f7
üst f016ed2e
...@@ -626,7 +626,7 @@ void TabControl::ImplChangeTabPage( sal_uInt16 nId, sal_uInt16 nOldId ) ...@@ -626,7 +626,7 @@ void TabControl::ImplChangeTabPage( sal_uInt16 nId, sal_uInt16 nOldId )
{ {
if ( ( GetStyle() & WB_NOBORDER ) ) if ( ( GetStyle() & WB_NOBORDER ) )
{ {
Rectangle aRectNoTab( (const Point&)Point( 0, 0 ), GetSizePixel() ); Rectangle aRectNoTab(Point(0, 0), GetSizePixel());
pPage->SetPosSizePixel( aRectNoTab.TopLeft(), aRectNoTab.GetSize() ); pPage->SetPosSizePixel( aRectNoTab.TopLeft(), aRectNoTab.GetSize() );
} }
else else
...@@ -684,7 +684,7 @@ bool TabControl::ImplPosCurTabPage() ...@@ -684,7 +684,7 @@ bool TabControl::ImplPosCurTabPage()
{ {
if ( ( GetStyle() & WB_NOBORDER ) ) if ( ( GetStyle() & WB_NOBORDER ) )
{ {
Rectangle aRectNoTab( (const Point&)Point( 0, 0 ), GetSizePixel() ); Rectangle aRectNoTab(Point(0, 0), GetSizePixel());
pItem->mpTabPage->SetPosSizePixel( aRectNoTab.TopLeft(), aRectNoTab.GetSize() ); pItem->mpTabPage->SetPosSizePixel( aRectNoTab.TopLeft(), aRectNoTab.GetSize() );
return true; return true;
} }
......
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