summaryrefslogtreecommitdiff
path: root/svtools/source/control/toolbarmenu.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control/toolbarmenu.cxx')
-rw-r--r--svtools/source/control/toolbarmenu.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx
index dd94ed5fd8f3..048208233b97 100644
--- a/svtools/source/control/toolbarmenu.cxx
+++ b/svtools/source/control/toolbarmenu.cxx
@@ -541,7 +541,7 @@ static long ImplGetNativeCheckAndRadioSize(vcl::RenderContext const & rRenderCon
)
{
rRadioHeight = aNativeBounds.GetHeight();
- rMaxWidth = std::max (rMaxWidth, aNativeContent.GetWidth());
+ rMaxWidth = std::max<sal_Int32>(rMaxWidth, aNativeContent.GetWidth());
}
}
return std::max(rCheckHeight, rRadioHeight);
@@ -570,7 +570,7 @@ Size ToolbarMenu::implCalcSize()
if( pEntry && pEntry->mbHasImage )
{
Size aImgSz( pEntry->maImage.GetSizePixel() );
- nMinMenuItemHeight = std::max( nMinMenuItemHeight, aImgSz.Height() + 6 );
+ nMinMenuItemHeight = std::max<sal_Int32>( nMinMenuItemHeight, aImgSz.Height() + 6 );
aMaxImgSz.setWidth( std::max( aMaxImgSz.Width(), aImgSz.Width() ) );
}
}
@@ -604,7 +604,7 @@ Size ToolbarMenu::implCalcSize()
{
Size aControlSize( pEntry->mpControl->GetOutputSizePixel() );
- nMaxTextWidth = std::max( aControlSize.Width(), nMaxTextWidth );
+ nMaxTextWidth = std::max<sal_Int32>( aControlSize.Width(), nMaxTextWidth );
pEntry->maSize.setHeight( aControlSize.Height() + 1 );
}