diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-30 14:23:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-30 16:25:15 +0100 |
commit | d0265c128c5c2c7d12e2f955ccb02aa255a2bf3c (patch) | |
tree | 0560183165036f1c0f53959deadd51c85d6ab19b /dtrans | |
parent | 9e8f11a722ee9cba37c4692a6ab7d74536261429 (diff) |
loplugin:redundantinline (clang-cl)
Change-Id: Ib6320ddc049e93cca4c5931ad28d1873d34bd8b4
Reviewed-on: https://gerrit.libreoffice.org/67137
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dtrans')
-rw-r--r-- | dtrans/source/win32/dtobj/DOTransferable.cxx | 3 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/XTDataObject.cxx | 3 | ||||
-rw-r--r-- | dtrans/source/win32/ftransl/ftransl.cxx | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/dtrans/source/win32/dtobj/DOTransferable.cxx b/dtrans/source/win32/dtobj/DOTransferable.cxx index db70196e18a3..846a0859bb67 100644 --- a/dtrans/source/win32/dtobj/DOTransferable.cxx +++ b/dtrans/source/win32/dtobj/DOTransferable.cxx @@ -49,7 +49,6 @@ namespace const Type CPPUTYPE_SEQINT8 = cppu::UnoType<Sequence< sal_Int8 >>::get(); const Type CPPUTYPE_OUSTRING = cppu::UnoType<OUString>::get(); - inline bool isValidFlavor( const DataFlavor& aFlavor ) { return ( aFlavor.MimeType.getLength( ) && @@ -89,7 +88,6 @@ void clipDataToByteStream( CLIPFORMAT cf, STGMEDIUM stgmedium, CDOTransferable:: memTransferHelper.read( aByteSequence.getArray( ), nMemSize ); } -inline OUString byteStreamToOUString( CDOTransferable::ByteSequence_t& aByteStream ) { sal_Int32 nWChars; @@ -105,7 +103,6 @@ OUString byteStreamToOUString( CDOTransferable::ByteSequence_t& aByteStream ) return OUString( reinterpret_cast< sal_Unicode* >( aByteStream.getArray( ) ), nWChars ); } -inline Any byteStreamToAny( CDOTransferable::ByteSequence_t& aByteStream, const Type& aRequestedDataType ) { Any aAny; diff --git a/dtrans/source/win32/dtobj/XTDataObject.cxx b/dtrans/source/win32/dtobj/XTDataObject.cxx index 2fba02835ec1..50d84c5da619 100644 --- a/dtrans/source/win32/dtobj/XTDataObject.cxx +++ b/dtrans/source/win32/dtobj/XTDataObject.cxx @@ -105,7 +105,6 @@ public: explicit CInvalidFormatEtcException( HRESULT hr ) : m_hr( hr ) {}; }; -inline void validateFormatEtc( LPFORMATETC lpFormatEtc ) { OSL_ASSERT( lpFormatEtc ); @@ -132,13 +131,11 @@ void validateFormatEtc( LPFORMATETC lpFormatEtc ) throw CInvalidFormatEtcException( DV_E_TYMED ); } -inline void invalidateStgMedium( STGMEDIUM& stgmedium ) { stgmedium.tymed = TYMED_NULL; } -inline HRESULT translateStgExceptionCode( HRESULT hr ) { HRESULT hrTransl; diff --git a/dtrans/source/win32/ftransl/ftransl.cxx b/dtrans/source/win32/ftransl/ftransl.cxx index c498472442e0..1ab6e1c87089 100644 --- a/dtrans/source/win32/ftransl/ftransl.cxx +++ b/dtrans/source/win32/ftransl/ftransl.cxx @@ -441,7 +441,7 @@ void findStdFormatIdOrNativeFormatNameForFullMediaType( } } -inline bool isTextPlainMediaType( const OUString& fullMediaType ) +bool isTextPlainMediaType( const OUString& fullMediaType ) { return fullMediaType.equalsIgnoreAsciiCase("text/plain"); } |