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

loplugin:casttovoid: cui

Change-Id: Id8c4baf8c22cde50c22e4dcbcb475d78294baf5d
üst 90c91f6b
...@@ -1531,18 +1531,14 @@ void SvxMenuEntriesListBox::dispose() ...@@ -1531,18 +1531,14 @@ void SvxMenuEntriesListBox::dispose()
// drag and drop support // drag and drop support
DragDropMode SvxMenuEntriesListBox::NotifyStartDrag( DragDropMode SvxMenuEntriesListBox::NotifyStartDrag(
TransferDataContainer& aTransferDataContainer, SvTreeListEntry* pEntry ) TransferDataContainer&, SvTreeListEntry* )
{ {
(void)aTransferDataContainer;
(void)pEntry;
m_bIsInternalDrag = true; m_bIsInternalDrag = true;
return GetDragDropMode(); return GetDragDropMode();
} }
void SvxMenuEntriesListBox::DragFinished( sal_Int8 nDropAction ) void SvxMenuEntriesListBox::DragFinished( sal_Int8 )
{ {
(void)nDropAction;
m_bIsInternalDrag = false; m_bIsInternalDrag = false;
} }
...@@ -1593,13 +1589,9 @@ TriState SvxMenuEntriesListBox::NotifyMoving( ...@@ -1593,13 +1589,9 @@ TriState SvxMenuEntriesListBox::NotifyMoving(
} }
TriState SvxMenuEntriesListBox::NotifyCopying( TriState SvxMenuEntriesListBox::NotifyCopying(
SvTreeListEntry* pTarget, SvTreeListEntry* pSource, SvTreeListEntry* pTarget, SvTreeListEntry*,
SvTreeListEntry*& rpNewParent, sal_uLong& rNewChildPos) SvTreeListEntry*&, sal_uLong&)
{ {
(void)pSource;
(void)rpNewParent;
(void)rNewChildPos;
if ( !m_bIsInternalDrag ) if ( !m_bIsInternalDrag )
{ {
// if the target is NULL then add function to the start of the list // if the target is NULL then add function to the start of the list
...@@ -4846,14 +4838,10 @@ TriState SvxToolbarEntriesListBox::NotifyMoving( ...@@ -4846,14 +4838,10 @@ TriState SvxToolbarEntriesListBox::NotifyMoving(
TriState SvxToolbarEntriesListBox::NotifyCopying( TriState SvxToolbarEntriesListBox::NotifyCopying(
SvTreeListEntry* pTarget, SvTreeListEntry* pTarget,
SvTreeListEntry* pSource, SvTreeListEntry*,
SvTreeListEntry*& rpNewParent, SvTreeListEntry*&,
sal_uLong& rNewChildPos) sal_uLong&)
{ {
(void)pSource;
(void)rpNewParent;
(void)rNewChildPos;
if ( !m_bIsInternalDrag ) if ( !m_bIsInternalDrag )
{ {
// if the target is NULL then add function to the start of the list // if the target is NULL then add function to the start of the list
......
...@@ -85,7 +85,6 @@ static long nTabs[] = ...@@ -85,7 +85,6 @@ static long nTabs[] =
IMPL_LINK( MacroEventListBox, HeaderEndDrag_Impl, HeaderBar*, pBar, void ) IMPL_LINK( MacroEventListBox, HeaderEndDrag_Impl, HeaderBar*, pBar, void )
{ {
DBG_ASSERT( pBar == maHeaderBar.get(), "*MacroEventListBox::HeaderEndDrag_Impl: something is wrong here..." ); DBG_ASSERT( pBar == maHeaderBar.get(), "*MacroEventListBox::HeaderEndDrag_Impl: something is wrong here..." );
(void)pBar;
if( !maHeaderBar->GetCurItemId() ) if( !maHeaderBar->GetCurItemId() )
return; return;
......
...@@ -364,9 +364,8 @@ IMPL_LINK_NOARG( SvxHyphenWordDialog, HyphenateAllHdl_Impl, Button *, void ) ...@@ -364,9 +364,8 @@ IMPL_LINK_NOARG( SvxHyphenWordDialog, HyphenateAllHdl_Impl, Button *, void )
xProp->setIsHyphAuto( false ); xProp->setIsHyphAuto( false );
} }
catch (uno::Exception &e) catch (uno::Exception &)
{ {
(void) e;
SAL_WARN( "cui.dialogs", "Hyphenate All failed" ); SAL_WARN( "cui.dialogs", "Hyphenate All failed" );
} }
} }
......
...@@ -191,7 +191,7 @@ public: ...@@ -191,7 +191,7 @@ public:
/// methods inherited from SaveInData /// methods inherited from SaveInData
SvxEntries* GetEntries() override; SvxEntries* GetEntries() override;
void SetEntries( SvxEntries* ) override; void SetEntries( SvxEntries* ) override;
bool HasURL( const OUString& URL ) override { (void)URL; return false; } bool HasURL( const OUString& ) override { return false; }
bool HasSettings() override { return m_xMenuSettings.is(); } bool HasSettings() override { return m_xMenuSettings.is(); }
void Reset() override; void Reset() override;
bool Apply() override; bool Apply() override;
......
...@@ -597,7 +597,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ ) ...@@ -597,7 +597,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ )
if ( m_pParamDlg ) if ( m_pParamDlg )
{ {
eErr = jfw_setVMParameters( m_pParamDlg->GetParameters() ); eErr = jfw_setVMParameters( m_pParamDlg->GetParameters() );
SAL_WARN_IF(JFW_E_NONE != eErr, "cui.options", "SvxJavaOptionsPage::FillItemSet(): error in jfw_setVMParameters"); (void)eErr; SAL_WARN_IF(JFW_E_NONE != eErr, "cui.options", "SvxJavaOptionsPage::FillItemSet(): error in jfw_setVMParameters");
bModified = true; bModified = true;
} }
...@@ -607,7 +607,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ ) ...@@ -607,7 +607,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ )
if ( m_pPathDlg->GetOldPath() != sPath ) if ( m_pPathDlg->GetOldPath() != sPath )
{ {
eErr = jfw_setUserClassPath( sPath ); eErr = jfw_setUserClassPath( sPath );
SAL_WARN_IF(JFW_E_NONE != eErr, "cui.options", "SvxJavaOptionsPage::FillItemSet(): error in jfw_setUserClassPath"); (void)eErr; SAL_WARN_IF(JFW_E_NONE != eErr, "cui.options", "SvxJavaOptionsPage::FillItemSet(): error in jfw_setUserClassPath");
bModified = true; bModified = true;
} }
} }
...@@ -638,7 +638,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ ) ...@@ -638,7 +638,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ )
} }
eErr = jfw_setSelectedJRE( pInfo ); eErr = jfw_setSelectedJRE( pInfo );
SAL_WARN_IF(JFW_E_NONE != eErr, "cui.options", "SvxJavaOptionsPage::FillItemSet(): error in jfw_setSelectedJRE"); (void)eErr; SAL_WARN_IF(JFW_E_NONE != eErr, "cui.options", "SvxJavaOptionsPage::FillItemSet(): error in jfw_setSelectedJRE");
bModified = true; bModified = true;
} }
} }
...@@ -649,7 +649,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ ) ...@@ -649,7 +649,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* /*rCoreSet*/ )
bool bEnabled = false; bool bEnabled = false;
eErr = jfw_getEnabled( &bEnabled ); eErr = jfw_getEnabled( &bEnabled );
DBG_ASSERT( JFW_E_NONE == eErr, DBG_ASSERT( JFW_E_NONE == eErr,
"SvxJavaOptionsPage::FillItemSet(): error in jfw_getEnabled" ); (void)eErr; "SvxJavaOptionsPage::FillItemSet(): error in jfw_getEnabled" );
if ( bEnabled != m_pJavaEnableCB->IsChecked() ) if ( bEnabled != m_pJavaEnableCB->IsChecked() )
{ {
eErr = jfw_setEnabled( m_pJavaEnableCB->IsChecked() ); eErr = jfw_setEnabled( m_pJavaEnableCB->IsChecked() );
......
...@@ -767,7 +767,6 @@ void SvxColorTabPage::FillUserData() ...@@ -767,7 +767,6 @@ void SvxColorTabPage::FillUserData()
void SvxColorTabPage::SetPropertyList( XPropertyListType t, const XPropertyListRef &xRef ) void SvxColorTabPage::SetPropertyList( XPropertyListType t, const XPropertyListRef &xRef )
{ {
(void) t;
OSL_ASSERT( t == XPropertyListType::Color ); OSL_ASSERT( t == XPropertyListType::Color );
pColorList = XColorListRef( static_cast<XColorList *>(xRef.get() ) ); pColorList = XColorListRef( static_cast<XColorList *>(xRef.get() ) );
} }
......
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