diff options
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/control/statcach.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/doc/Metadatable.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/doc/docundomanager.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/sidebar/Panel.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/sidebar/SidebarPanelBase.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/sidebar/TitleBar.cxx | 1 |
10 files changed, 8 insertions, 22 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 031c395cf3c0..4978363c5ad9 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -783,8 +783,8 @@ void ShutdownIcon::SetAutostart( bool bActivate ) if ((0 != symlink(aDesktopFileUnx.getStr(), aShortcutUnx.getStr())) && (errno == EEXIST)) { unlink(aShortcutUnx.getStr()); - int ret = symlink(aDesktopFileUnx.getStr(), aShortcutUnx.getStr()); - (void)ret; //deliberately ignore return value, it's non-critical if it fails + (void) symlink(aDesktopFileUnx.getStr(), aShortcutUnx.getStr()); + //deliberately ignore return value, it's non-critical if it fails } ShutdownIcon *pIcon = ShutdownIcon::createInstance(); diff --git a/sfx2/source/control/statcach.cxx b/sfx2/source/control/statcach.cxx index 4f1995ce6dae..1d0d794c428b 100644 --- a/sfx2/source/control/statcach.cxx +++ b/sfx2/source/control/statcach.cxx @@ -391,8 +391,6 @@ void SfxStateCache::SetState_Impl bool bMaybeDirty ) { - (void)bMaybeDirty; //unused - // If a hard update occurs between enter- and leave-registrations is a // can also intermediate Cached exist without controller. if ( !pController && !pInternalController ) diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx index 74b0dc8d56a5..cab703490918 100644 --- a/sfx2/source/control/thumbnailviewacc.cxx +++ b/sfx2/source/control/thumbnailviewacc.cxx @@ -483,7 +483,7 @@ uno::Reference< accessibility::XAccessible > SAL_CALL ThumbnailViewAcc::getSelec return xRet; } -void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild( sal_Int32 nChildIndex ) +void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild( sal_Int32 ) { ThrowIfDisposed(); const SolarMutexGuard aSolarGuard; @@ -491,7 +491,6 @@ void SAL_CALL ThumbnailViewAcc::deselectAccessibleChild( sal_Int32 nChildIndex ) // the specified child is currently selected. //FIXME TODO if (isAccessibleChildSelected(nChildIndex)) //FIXME TODO ; - (void) nChildIndex; } sal_Int64 SAL_CALL ThumbnailViewAcc::getSomething( const uno::Sequence< sal_Int8 >& rId ) diff --git a/sfx2/source/doc/Metadatable.cxx b/sfx2/source/doc/Metadatable.cxx index 0b409959622e..f1550da9c0b3 100644 --- a/sfx2/source/doc/Metadatable.cxx +++ b/sfx2/source/doc/Metadatable.cxx @@ -1209,7 +1209,6 @@ XmlIdRegistryClipboard::RegisterCopyClipboard(Metadatable & i_rCopy, const bool success( m_pImpl->TryInsertMetadatable(i_rCopy, i_rReference.First, i_rReference.Second) ); OSL_ENSURE(success, "RegisterCopyClipboard: TryInsert failed?"); - (void) success; } const std::shared_ptr<MetadatableClipboard> xLink( CreateClipboard( isContentFile(i_rReference.First)) ); diff --git a/sfx2/source/doc/docundomanager.cxx b/sfx2/source/doc/docundomanager.cxx index 693084ec14c2..143dffb1e3e3 100644 --- a/sfx2/source/doc/docundomanager.cxx +++ b/sfx2/source/doc/docundomanager.cxx @@ -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() ); } diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 6714c7a0ef94..1bb7a932b853 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -2507,7 +2507,6 @@ bool SfxObjectShell::DoSave_Impl( const SfxItemSet* pArgs ) bOpen = DoSaveCompleted( pMediumTmp ); DBG_ASSERT(bOpen,"Error handling for DoSaveCompleted not implemented"); - (void)bOpen; } else { @@ -2801,7 +2800,6 @@ bool SfxObjectShell::PreDoSaveAs_Impl(const OUString& rFileName, const OUString& bool bRet( false ); bRet = DoSaveCompleted( pMedium ); 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 diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 3b86130bfa59..b3937be0f376 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -141,9 +141,8 @@ void Deck::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*r Theme::GetPaint(Theme::Paint_VerticalBorder)); } -void Deck::DataChanged (const DataChangedEvent& rEvent) +void Deck::DataChanged (const DataChangedEvent&) { - (void)rEvent; RequestLayout(); } diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx index fa75db898742..63b156c696df 100644 --- a/sfx2/source/sidebar/Panel.cxx +++ b/sfx2/source/sidebar/Panel.cxx @@ -152,9 +152,8 @@ void Panel::Resize() } } -void Panel::DataChanged (const DataChangedEvent& rEvent) +void Panel::DataChanged (const DataChangedEvent&) { - (void)rEvent; Invalidate(); } diff --git a/sfx2/source/sidebar/SidebarPanelBase.cxx b/sfx2/source/sidebar/SidebarPanelBase.cxx index e0d72cff36d2..7d0687462122 100644 --- a/sfx2/source/sidebar/SidebarPanelBase.cxx +++ b/sfx2/source/sidebar/SidebarPanelBase.cxx @@ -107,10 +107,8 @@ void SAL_CALL SidebarPanelBase::notifyContextChangeEvent ( } void SAL_CALL SidebarPanelBase::disposing ( - const css::lang::EventObject& rEvent) + const css::lang::EventObject&) { - (void)rEvent; - mxFrame = nullptr; mpControl = nullptr; } @@ -136,10 +134,8 @@ Reference<XInterface> SAL_CALL SidebarPanelBase::getRealInterface() } Reference<accessibility::XAccessible> SAL_CALL SidebarPanelBase::createAccessible ( - const Reference<accessibility::XAccessible>& rxParentAccessible) + const Reference<accessibility::XAccessible>&) { - (void)rxParentAccessible; - // Not yet implemented. return nullptr; } diff --git a/sfx2/source/sidebar/TitleBar.cxx b/sfx2/source/sidebar/TitleBar.cxx index 22433123cd4c..f43e8895bbcd 100644 --- a/sfx2/source/sidebar/TitleBar.cxx +++ b/sfx2/source/sidebar/TitleBar.cxx @@ -166,7 +166,6 @@ void TitleBar::PaintFocus(vcl::RenderContext& rRenderContext, const tools::Recta IMPL_LINK(TitleBar, SelectionHandler, ToolBox*, pToolBox, void) { - (void)pToolBox; OSL_ASSERT(maToolBox.get()==pToolBox); const sal_uInt16 nItemId (maToolBox->GetHighlightItemId()); |