From 071dcb5f6aaf7179619a251933dec8bbdc6f3cd8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 4 Apr 2017 10:01:58 +0200 Subject: loplugin:redundantinline (clang-cl) Change-Id: I03a19b599005f6ef25040889a1e1802445ebf430 Reviewed-on: https://gerrit.libreoffice.org/36063 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- vcl/inc/win/winlayout.hxx | 6 +++--- vcl/win/gdi/salfont.cxx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'vcl') diff --git a/vcl/inc/win/winlayout.hxx b/vcl/inc/win/winlayout.hxx index eb1004ca142c..19b5e0f9d9f8 100644 --- a/vcl/inc/win/winlayout.hxx +++ b/vcl/inc/win/winlayout.hxx @@ -217,7 +217,7 @@ public: SalGraphics &rGraphics, HDC hDC) override; - inline bool BindDC(HDC hDC, tools::Rectangle const & rRect = tools::Rectangle(0, 0, 0, 0)) { + bool BindDC(HDC hDC, tools::Rectangle const & rRect = tools::Rectangle(0, 0, 0, 0)) { RECT const rc = { rRect.Left(), rRect.Top(), rRect.Right(), rRect.Bottom() }; return SUCCEEDED(mpRT->BindDC(hDC, &rc)); } @@ -230,12 +230,12 @@ public: IDWriteFontFace * GetFontFace() const { return mpFontFace; } float GetEmHeight() const { return mlfEmHeight; } - inline HRESULT CreateRenderTarget() { + HRESULT CreateRenderTarget() { if (mpRT) mpRT->Release(); mpRT = nullptr; return mpD2DFactory->CreateDCRenderTarget(&mRTProps, &mpRT); } - inline bool Ready() const { return mpGdiInterop && mpRT; } + bool Ready() const { return mpGdiInterop && mpRT; } private: static void CleanupModules(); diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index aa3eac7c56a5..544e6b6c2a3a 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -1585,13 +1585,13 @@ ScopedFont::~ScopedFont() class ScopedTrueTypeFont { public: - inline ScopedTrueTypeFont(): m_pFont(nullptr) {} + ScopedTrueTypeFont(): m_pFont(nullptr) {} ~ScopedTrueTypeFont(); int open(void const * pBuffer, sal_uInt32 nLen, sal_uInt32 nFaceNum); - inline TrueTypeFont * get() const { return m_pFont; } + TrueTypeFont * get() const { return m_pFont; } private: TrueTypeFont * m_pFont; -- cgit