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