From b06d31f0998d5969c104697cd1b1888c06a0116c Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 21 Oct 2020 15:31:57 +0200 Subject: long->tools::Long in sfx2 Change-Id: Ie1283e353598cd05e5a2933814f618649b89de01 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104628 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/control/recentdocsview.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2/source/control/recentdocsview.cxx') diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx index abbf7e71ec1f..063051642fa0 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -118,8 +118,8 @@ static std::map EncryptedBitmapForExtension = { ApplicationType::TYPE_MATH, BMP_128X128_MATH_DOC } }; -constexpr long gnTextHeight = 30; -constexpr long gnItemPadding = 5; +constexpr tools::Long gnTextHeight = 30; +constexpr tools::Long gnItemPadding = 5; RecentDocsView::RecentDocsView( vcl::Window* pParent ) : ThumbnailView(pParent) @@ -355,7 +355,7 @@ void RecentDocsView::Paint(vcl::RenderContext& rRenderContext, const tools::Rect { if (maWelcomeImage.IsEmpty()) { - const long aWidth(aRect.GetWidth() > aRect.getHeight() ? aRect.GetHeight()/2 : aRect.GetWidth()/2); + const tools::Long aWidth(aRect.GetWidth() > aRect.getHeight() ? aRect.GetHeight()/2 : aRect.GetWidth()/2); maWelcomeImage = SfxApplication::GetApplicationLogo(aWidth); } @@ -364,7 +364,7 @@ void RecentDocsView::Paint(vcl::RenderContext& rRenderContext, const tools::Rect SetMessageFont(rRenderContext); SetTextColor(maTextColor); - long nTextHeight = rRenderContext.GetTextHeight(); + tools::Long nTextHeight = rRenderContext.GetTextHeight(); const Size& rImgSize = maWelcomeImage.GetSizePixel(); const Size& rSize = GetSizePixel(); -- cgit