Kaydet (Commit) 1e9245e4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:redundantinline

Change-Id: I5fb1c6ba516e2853b1826e20c6c21cccc1fe98fa
Reviewed-on: https://gerrit.libreoffice.org/62074
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 21ba68ae
...@@ -135,12 +135,12 @@ SAL_WNODEPRECATED_DECLARATIONS_POP ...@@ -135,12 +135,12 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
#define SIZE_FLAVOR_MAP (sizeof(flavorMap)/sizeof(FlavorMap)) #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()); 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() ); return (theType == cppu::UnoType<OUString>::get() );
} }
......
...@@ -60,7 +60,7 @@ namespace /* private */ ...@@ -60,7 +60,7 @@ namespace /* private */
// coordinate system upper-left hence we need to transform // coordinate system upper-left hence we need to transform
// coordinates // coordinates
inline void CocoaToVCL(NSPoint& rPoint, const NSRect& bounds) void CocoaToVCL(NSPoint& rPoint, const NSRect& bounds)
{ {
rPoint.y = bounds.size.height - rPoint.y; rPoint.y = bounds.size.height - rPoint.y;
} }
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
using namespace ::com::sun::star::accessibility; using namespace ::com::sun::star::accessibility;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
static inline vcl::Window * static vcl::Window *
getWindow(const ::VclSimpleEvent *pEvent) getWindow(const ::VclSimpleEvent *pEvent)
{ {
return static_cast< const ::VclWindowEvent *> (pEvent)->GetWindow(); return static_cast< const ::VclWindowEvent *> (pEvent)->GetWindow();
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <sallayout.hxx> #include <sallayout.hxx>
#include <hb-coretext.h> #include <hb-coretext.h>
static inline double toRadian(int nDegree) static double toRadian(int nDegree)
{ {
return nDegree * (M_PI / 1800.0); return nDegree * (M_PI / 1800.0);
} }
......
...@@ -291,7 +291,7 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile, ...@@ -291,7 +291,7 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile,
return (nRC == SFErrCodes::Ok); 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_fX = static_cast<float>(i_pIn->mnX ) + 0.5;
o_fY = static_cast<float>(i_pIn->mnY ) + 0.5; o_fY = static_cast<float>(i_pIn->mnY ) + 0.5;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment