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

loplugin:casttovoid: sfx2

Change-Id: If08aeb785b6ccffe477ddacc314f2182f6746648
üst 58c0252f
...@@ -783,8 +783,8 @@ void ShutdownIcon::SetAutostart( bool bActivate ) ...@@ -783,8 +783,8 @@ void ShutdownIcon::SetAutostart( bool bActivate )
if ((0 != symlink(aDesktopFileUnx.getStr(), aShortcutUnx.getStr())) && (errno == EEXIST)) if ((0 != symlink(aDesktopFileUnx.getStr(), aShortcutUnx.getStr())) && (errno == EEXIST))
{ {
unlink(aShortcutUnx.getStr()); unlink(aShortcutUnx.getStr());
int ret = symlink(aDesktopFileUnx.getStr(), aShortcutUnx.getStr()); (void) symlink(aDesktopFileUnx.getStr(), aShortcutUnx.getStr());
(void)ret; //deliberately ignore return value, it's non-critical if it fails //deliberately ignore return value, it's non-critical if it fails
} }
ShutdownIcon *pIcon = ShutdownIcon::createInstance(); ShutdownIcon *pIcon = ShutdownIcon::createInstance();
......
...@@ -391,8 +391,6 @@ void SfxStateCache::SetState_Impl ...@@ -391,8 +391,6 @@ void SfxStateCache::SetState_Impl
bool bMaybeDirty bool bMaybeDirty
) )
{ {
(void)bMaybeDirty; //unused
// If a hard update occurs between enter- and leave-registrations is a // If a hard update occurs between enter- and leave-registrations is a
// can also intermediate Cached exist without controller. // can also intermediate Cached exist without controller.
if ( !pController && !pInternalController ) if ( !pController && !pInternalController )
......
...@@ -483,7 +483,7 @@ uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getSelec ...@@ -483,7 +483,7 @@ uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getSelec
return xRet; return xRet;
} }
void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild( sal_Int32 nChildIndex ) void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild( sal_Int32 )
{ {
ThrowIfDisposed(); ThrowIfDisposed();
const SolarMutexGuard aSolarGuard; const SolarMutexGuard aSolarGuard;
...@@ -491,7 +491,6 @@ void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild( sal_Int32 nChildIndex ) ...@@ -491,7 +491,6 @@ void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild( sal_Int32 nChildIndex )
// the specified child is currently selected. // the specified child is currently selected.
//FIXME TODO if (isAccessibleChildSelected(nChildIndex)) //FIXME TODO if (isAccessibleChildSelected(nChildIndex))
//FIXME TODO ; //FIXME TODO ;
(void) nChildIndex;
} }
sal_Int64 SAL_CALL ThumbnailViewAcc::getSomething( const uno::Sequence< sal_Int8 >& rId ) sal_Int64 SAL_CALL ThumbnailViewAcc::getSomething( const uno::Sequence< sal_Int8 >& rId )
......
...@@ -1209,7 +1209,6 @@ XmlIdRegistryClipboard::RegisterCopyClipboard(Metadatable & i_rCopy, ...@@ -1209,7 +1209,6 @@ XmlIdRegistryClipboard::RegisterCopyClipboard(Metadatable & i_rCopy,
const bool success( m_pImpl->TryInsertMetadatable(i_rCopy, const bool success( m_pImpl->TryInsertMetadatable(i_rCopy,
i_rReference.First, i_rReference.Second) ); i_rReference.First, i_rReference.Second) );
OSL_ENSURE(success, "RegisterCopyClipboard: TryInsert failed?"); OSL_ENSURE(success, "RegisterCopyClipboard: TryInsert failed?");
(void) success;
} }
const std::shared_ptr<MetadatableClipboard> xLink( const std::shared_ptr<MetadatableClipboard> xLink(
CreateClipboard( isContentFile(i_rReference.First)) ); CreateClipboard( isContentFile(i_rReference.First)) );
......
...@@ -414,9 +414,8 @@ namespace sfx2 ...@@ -414,9 +414,8 @@ namespace sfx2
} }
void SAL_CALL DocumentUndoManager::setParent( const Reference< XInterface >& i_parent ) void SAL_CALL DocumentUndoManager::setParent( const Reference< XInterface >& )
{ {
(void)i_parent;
throw NoSupportException( OUString(), m_pImpl->getThis() ); throw NoSupportException( OUString(), m_pImpl->getThis() );
} }
......
...@@ -2507,7 +2507,6 @@ bool SfxObjectShell::DoSave_Impl( const SfxItemSet* pArgs ) ...@@ -2507,7 +2507,6 @@ bool SfxObjectShell::DoSave_Impl( const SfxItemSet* pArgs )
bOpen = DoSaveCompleted( pMediumTmp ); bOpen = DoSaveCompleted( pMediumTmp );
DBG_ASSERT(bOpen,"Error handling for DoSaveCompleted not implemented"); DBG_ASSERT(bOpen,"Error handling for DoSaveCompleted not implemented");
(void)bOpen;
} }
else else
{ {
...@@ -2801,7 +2800,6 @@ bool SfxObjectShell::PreDoSaveAs_Impl(const OUString& rFileName, const OUString& ...@@ -2801,7 +2800,6 @@ bool SfxObjectShell::PreDoSaveAs_Impl(const OUString& rFileName, const OUString&
bool bRet( false ); bool bRet( false );
bRet = DoSaveCompleted( pMedium ); bRet = DoSaveCompleted( pMedium );
DBG_ASSERT( bRet, "Error in DoSaveCompleted, can't be handled!"); DBG_ASSERT( bRet, "Error in DoSaveCompleted, can't be handled!");
(void)bRet;
} }
// TODO/LATER: disconnect the new file from the storage for the case when pure saving is done // TODO/LATER: disconnect the new file from the storage for the case when pure saving is done
......
...@@ -141,9 +141,8 @@ void Deck::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*r ...@@ -141,9 +141,8 @@ void Deck::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*r
Theme::GetPaint(Theme::Paint_VerticalBorder)); Theme::GetPaint(Theme::Paint_VerticalBorder));
} }
void Deck::DataChanged (const DataChangedEvent& rEvent) void Deck::DataChanged (const DataChangedEvent&)
{ {
(void)rEvent;
RequestLayout(); RequestLayout();
} }
......
...@@ -152,9 +152,8 @@ void Panel::Resize() ...@@ -152,9 +152,8 @@ void Panel::Resize()
} }
} }
void Panel::DataChanged (const DataChangedEvent& rEvent) void Panel::DataChanged (const DataChangedEvent&)
{ {
(void)rEvent;
Invalidate(); Invalidate();
} }
......
...@@ -107,10 +107,8 @@ void SAL_CALL SidebarPanelBase::notifyContextChangeEvent ( ...@@ -107,10 +107,8 @@ void SAL_CALL SidebarPanelBase::notifyContextChangeEvent (
} }
void SAL_CALL SidebarPanelBase::disposing ( void SAL_CALL SidebarPanelBase::disposing (
const css::lang::EventObject& rEvent) const css::lang::EventObject&)
{ {
(void)rEvent;
mxFrame = nullptr; mxFrame = nullptr;
mpControl = nullptr; mpControl = nullptr;
} }
...@@ -136,10 +134,8 @@ Reference<XInterface> SAL_CALL SidebarPanelBase::getRealInterface() ...@@ -136,10 +134,8 @@ Reference<XInterface> SAL_CALL SidebarPanelBase::getRealInterface()
} }
Reference<accessibility::XAccessible> SAL_CALL SidebarPanelBase::createAccessible ( Reference<accessibility::XAccessible> SAL_CALL SidebarPanelBase::createAccessible (
const Reference<accessibility::XAccessible>& rxParentAccessible) const Reference<accessibility::XAccessible>&)
{ {
(void)rxParentAccessible;
// Not yet implemented. // Not yet implemented.
return nullptr; return nullptr;
} }
......
...@@ -166,7 +166,6 @@ void TitleBar::PaintFocus(vcl::RenderContext& rRenderContext, const tools::Recta ...@@ -166,7 +166,6 @@ void TitleBar::PaintFocus(vcl::RenderContext& rRenderContext, const tools::Recta
IMPL_LINK(TitleBar, SelectionHandler, ToolBox*, pToolBox, void) IMPL_LINK(TitleBar, SelectionHandler, ToolBox*, pToolBox, void)
{ {
(void)pToolBox;
OSL_ASSERT(maToolBox.get()==pToolBox); OSL_ASSERT(maToolBox.get()==pToolBox);
const sal_uInt16 nItemId (maToolBox->GetHighlightItemId()); const sal_uInt16 nItemId (maToolBox->GetHighlightItemId());
......
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