diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-21 15:31:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-22 09:22:04 +0200 |
commit | b06d31f0998d5969c104697cd1b1888c06a0116c (patch) | |
tree | 8181e10f0312830b1a8a9e5686bc71b9a55225bb /sfx2/source/control/recentdocsview.cxx | |
parent | 86467cf27ca6d85b383244d0a0197f8b5378750d (diff) |
long->tools::Long in sfx2
Change-Id: Ie1283e353598cd05e5a2933814f618649b89de01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104628
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/control/recentdocsview.cxx')
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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<ApplicationType,OUString> 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(); |