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

loplugin:casttovoid: svl

Change-Id: Iec49ad76f102dc228d41beb10d7e99ed197c0ea8
üst 34947556
...@@ -30,8 +30,7 @@ class MockedStyleSheet : public SfxStyleSheetBase ...@@ -30,8 +30,7 @@ class MockedStyleSheet : public SfxStyleSheetBase
}; };
struct DummyPredicate : public StyleSheetPredicate { struct DummyPredicate : public StyleSheetPredicate {
bool Check(const SfxStyleSheetBase& styleSheet) override { bool Check(const SfxStyleSheetBase&) override {
(void)styleSheet; // fix compiler warning
return true; return true;
} }
}; };
......
...@@ -42,8 +42,7 @@ public: ...@@ -42,8 +42,7 @@ public:
MockedSfxListener() MockedSfxListener()
: mNotifyWasCalled(false) {} : mNotifyWasCalled(false) {}
void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override { void Notify(SfxBroadcaster&, const SfxHint&) override {
(void)(rBC); (void)(rHint); // avoid warnings about unused parameters
mNotifyWasCalled = true; mNotifyWasCalled = true;
} }
......
...@@ -103,7 +103,6 @@ namespace svt ...@@ -103,7 +103,6 @@ namespace svt
} }
OSL_ENSURE( bSuccess, "OFileNotation::OFileNotation: could not detect the format!" ); OSL_ENSURE( bSuccess, "OFileNotation::OFileNotation: could not detect the format!" );
(void)bSuccess;
} }
OUString OFileNotation::get(NOTATION _eOutputNotation) OUString OFileNotation::get(NOTATION _eOutputNotation)
......
...@@ -470,10 +470,9 @@ bool ImpSvNumberInputScan::StringContainsWord( const OUString& rWhat, ...@@ -470,10 +470,9 @@ bool ImpSvNumberInputScan::StringContainsWord( const OUString& rWhat,
return false; // Alpha or numeric is not word gap. return false; // Alpha or numeric is not word gap.
sal_Int32 nIndex = nPos; sal_Int32 nIndex = nPos;
const sal_uInt32 uc = rString.iterateCodePoints( &nIndex); rString.iterateCodePoints( &nIndex);
if (nPos+1 < nIndex) if (nPos+1 < nIndex)
return true; // Surrogate, assume these to be new words. return true; // Surrogate, assume these to be new words.
(void)uc;
const sal_Int32 nType = pFormatter->GetCharClass()->getCharacterType( rString, nPos); const sal_Int32 nType = pFormatter->GetCharClass()->getCharacterType( rString, nPos);
using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::i18n;
......
...@@ -502,7 +502,6 @@ void SvNumberFormatter::ReplaceSystemCL( LanguageType eOldLanguage ) ...@@ -502,7 +502,6 @@ void SvNumberFormatter::ReplaceSystemCL( LanguageType eOldLanguage )
} }
} }
DBG_ASSERT( bCheck, "SvNumberFormatter::ReplaceSystemCL: couldn't convert" ); DBG_ASSERT( bCheck, "SvNumberFormatter::ReplaceSystemCL: couldn't convert" );
(void)bCheck;
delete pOldEntry; delete pOldEntry;
} }
......
...@@ -95,9 +95,8 @@ void SfxUndoAction::Undo() ...@@ -95,9 +95,8 @@ void SfxUndoAction::Undo()
} }
void SfxUndoAction::UndoWithContext( SfxUndoContext& i_context ) void SfxUndoAction::UndoWithContext( SfxUndoContext& )
{ {
(void)i_context;
Undo(); Undo();
} }
...@@ -109,9 +108,8 @@ void SfxUndoAction::Redo() ...@@ -109,9 +108,8 @@ void SfxUndoAction::Redo()
} }
void SfxUndoAction::RedoWithContext( SfxUndoContext& i_context ) void SfxUndoAction::RedoWithContext( SfxUndoContext& )
{ {
(void)i_context;
Redo(); Redo();
} }
......
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