vcl/osx/DataFlavorMapping.cxx | 4 ++-- vcl/osx/DropTarget.cxx | 2 +- vcl/osx/a11yfocustracker.cxx | 2 +- vcl/quartz/ctfonts.cxx | 2 +- vcl/quartz/salgdicommon.cxx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 1e9245e4cdf975e9b087ffb120cf23ee2ca7a23d Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Sat Oct 20 14:43:23 2018 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Sun Oct 21 10:45:50 2018 +0200 loplugin:redundantinline Change-Id: I5fb1c6ba516e2853b1826e20c6c21cccc1fe98fa Reviewed-on: https://gerrit.libreoffice.org/62074 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/vcl/osx/DataFlavorMapping.cxx b/vcl/osx/DataFlavorMapping.cxx index 4a785129ea28..de8dc8c41338 100644 --- a/vcl/osx/DataFlavorMapping.cxx +++ b/vcl/osx/DataFlavorMapping.cxx @@ -135,12 +135,12 @@ SAL_WNODEPRECATED_DECLARATIONS_POP #define SIZE_FLAVOR_MAP (sizeof(flavorMap)/sizeof(FlavorMap)) - inline bool isByteSequenceType(const Type& theType) + bool isByteSequenceType(const Type& theType) { return (theType == cppu::UnoType<Sequence<sal_Int8>>::get()); } - inline bool isOUStringType(const Type& theType) + bool isOUStringType(const Type& theType) { return (theType == cppu::UnoType<OUString>::get() ); } diff --git a/vcl/osx/DropTarget.cxx b/vcl/osx/DropTarget.cxx index 4ab4f9ac6eca..3c6ea81f386c 100644 --- a/vcl/osx/DropTarget.cxx +++ b/vcl/osx/DropTarget.cxx @@ -60,7 +60,7 @@ namespace /* private */ // coordinate system upper-left hence we need to transform // coordinates - inline void CocoaToVCL(NSPoint& rPoint, const NSRect& bounds) + void CocoaToVCL(NSPoint& rPoint, const NSRect& bounds) { rPoint.y = bounds.size.height - rPoint.y; } diff --git a/vcl/osx/a11yfocustracker.cxx b/vcl/osx/a11yfocustracker.cxx index b650720adcb1..49fa08ec4eee 100644 --- a/vcl/osx/a11yfocustracker.cxx +++ b/vcl/osx/a11yfocustracker.cxx @@ -35,7 +35,7 @@ using namespace ::com::sun::star::accessibility; using namespace ::com::sun::star::uno; -static inline vcl::Window * +static vcl::Window * getWindow(const ::VclSimpleEvent *pEvent) { return static_cast< const ::VclWindowEvent *> (pEvent)->GetWindow(); diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx index 6050badcdcca..132ba34c9f6e 100644 --- a/vcl/quartz/ctfonts.cxx +++ b/vcl/quartz/ctfonts.cxx @@ -40,7 +40,7 @@ #include <sallayout.hxx> #include <hb-coretext.h> -static inline double toRadian(int nDegree) +static double toRadian(int nDegree) { return nDegree * (M_PI / 1800.0); } diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index d7a21d3ccd30..549ad3e33f5b 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -291,7 +291,7 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile, return (nRC == SFErrCodes::Ok); } -static inline void alignLinePoint( const SalPoint* i_pIn, float& o_fX, float& o_fY ) +static void alignLinePoint( const SalPoint* i_pIn, float& o_fX, float& o_fY ) { o_fX = static_cast<float>(i_pIn->mnX ) + 0.5; o_fY = static_cast<float>(i_pIn->mnY ) + 0.5; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits