diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-03 14:03:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-03 14:03:34 +0200 |
commit | 663376dee3b8c0ea0f6f8079e14a512b060ecb24 (patch) | |
tree | a28ff42d141d289768e9e460fb4f2fa93d854adb | |
parent | 97e2369562f3dbca8568983a2d47ce953fa79acf (diff) |
loplugin:oncevar (clang-cl): dtrans
Change-Id: I2ec41f641f3784ef86322c25481e6794e29eb889
-rw-r--r-- | dtrans/source/win32/clipb/MtaOleClipb.cxx | 4 | ||||
-rw-r--r-- | dtrans/source/win32/dtobj/FetcList.cxx | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/dtrans/source/win32/clipb/MtaOleClipb.cxx b/dtrans/source/win32/clipb/MtaOleClipb.cxx index 6c8ec203295f..aa7681267129 100644 --- a/dtrans/source/win32/clipb/MtaOleClipb.cxx +++ b/dtrans/source/win32/clipb/MtaOleClipb.cxx @@ -427,8 +427,6 @@ bool CMtaOleClipboard::registerClipViewer( LPFNC_CLIPVIEWER_CALLBACK_t pfncClipV return false; } - bool bRet = false; - OSL_ENSURE( GetCurrentThreadId( ) != m_uOleThreadId, "registerClipViewer from within the OleThread called" ); MsgCtx aMsgCtx; @@ -439,7 +437,7 @@ bool CMtaOleClipboard::registerClipViewer( LPFNC_CLIPVIEWER_CALLBACK_t pfncClipV aMsgCtx.aCondition.wait( /* infinite */ ); - return bRet; + return false; } // register a clipboard viewer diff --git a/dtrans/source/win32/dtobj/FetcList.cxx b/dtrans/source/win32/dtobj/FetcList.cxx index c5744730323a..e26ceeac0072 100644 --- a/dtrans/source/win32/dtobj/FetcList.cxx +++ b/dtrans/source/win32/dtobj/FetcList.cxx @@ -214,9 +214,8 @@ void SAL_CALL CFormatRegistrar::RegisterFormats( aFormatEtcContainer.addFormatEtc( fetc ); // and HTML Format - OUString htmlFormat( "HTML Format" ); aFormatEtcContainer.addFormatEtc( - CDataFormatTranslator::getFormatEtcForClipformatName( htmlFormat ) ); + CDataFormatTranslator::getFormatEtcForClipformatName( "HTML Format" ) ); } } } |