diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:34:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:34:55 +0200 |
commit | 88b4ec9afb1e5f7864b570beef1cd3e62a191942 (patch) | |
tree | da8afbb9222b077368309326119c95e3a9e4d006 /chart2/source/model/main | |
parent | 2b1c731f3c69c1fa1af68e01683711ceda585e07 (diff) |
loplugin:casttovoid: chart2
Change-Id: I63a2429860bf0ac3d80a8a43bcbde8b8f00f533f
Diffstat (limited to 'chart2/source/model/main')
-rw-r--r-- | chart2/source/model/main/Axis.cxx | 1 | ||||
-rw-r--r-- | chart2/source/model/main/ChartModel.cxx | 4 | ||||
-rw-r--r-- | chart2/source/model/main/UndoManager.cxx | 3 |
3 files changed, 1 insertions, 7 deletions
diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx index 69ac5871f21e..c76ef479dd6a 100644 --- a/chart2/source/model/main/Axis.cxx +++ b/chart2/source/model/main/Axis.cxx @@ -332,7 +332,6 @@ void lcl_CloneSubGrids( ++pDestIt; } OSL_ASSERT( pDestIt == pDestEnd ); - (void)(pDestEnd); // avoid warning } } // anonymous namespace diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 9aaf10fdd46e..c3ebd9d794b4 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -1011,7 +1011,6 @@ awt::Size SAL_CALL ChartModel::getVisualAreaSize( ::sal_Int64 nAspect ) { OSL_ENSURE( nAspect == embed::Aspects::MSOLE_CONTENT, "No aspects other than content are supported" ); - (void)(nAspect); // avoid warning in non-debug builds // other possible aspects are MSOLE_THUMBNAIL, MSOLE_ICON and MSOLE_DOCPRINT return m_aVisualAreaSize; @@ -1021,7 +1020,6 @@ embed::VisualRepresentation SAL_CALL ChartModel::getPreferredVisualRepresentatio { OSL_ENSURE( nAspect == embed::Aspects::MSOLE_CONTENT, "No aspects other than content are supported" ); - (void)(nAspect); // avoid warning in non-debug builds embed::VisualRepresentation aResult; @@ -1059,7 +1057,6 @@ embed::VisualRepresentation SAL_CALL ChartModel::getPreferredVisualRepresentatio { OSL_ENSURE( nAspect == embed::Aspects::MSOLE_CONTENT, "No aspects other than content are supported" ); - (void)(nAspect); // avoid warning in non-debug builds return embed::EmbedMapUnits::ONE_100TH_MM; } @@ -1194,7 +1191,6 @@ Reference< uno::XInterface > SAL_CALL ChartModel::createInstanceWithArguments( const OUString& rServiceSpecifier , const Sequence< Any >& Arguments ) { OSL_ENSURE( Arguments.getLength(), "createInstanceWithArguments: Warning: Arguments are ignored" ); - (void)(Arguments); // avoid warning in non-debug builds return createInstance( rServiceSpecifier ); } diff --git a/chart2/source/model/main/UndoManager.cxx b/chart2/source/model/main/UndoManager.cxx index ab6ed77744ef..7e5894b012cb 100644 --- a/chart2/source/model/main/UndoManager.cxx +++ b/chart2/source/model/main/UndoManager.cxx @@ -322,10 +322,9 @@ namespace chart return *&m_pImpl->getParent(); } - void SAL_CALL UndoManager::setParent( const Reference< XInterface >& i_parent ) + void SAL_CALL UndoManager::setParent( const Reference< XInterface >& ) { UndoManagerMethodGuard aGuard( *m_pImpl ); - (void)i_parent; throw NoSupportException( OUString(), m_pImpl->getThis() ); } |