diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-11-14 21:02:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-14 21:02:40 +0100 |
commit | ab5d1fbfb4956ec431dbceb6b4cc65f7b12e5c5f (patch) | |
tree | 9a8a9a87526b4da881a364dd557ea9002e6a6b5b | |
parent | bcd594902c366443f0d17b7599267793ac6da204 (diff) |
SAL_WARN_UNUSED com::sun::star::uno::Any
Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0
47 files changed, 4 insertions, 62 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index 0bfa5687644f..78ac359368d7 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -2663,7 +2663,6 @@ RTLFUNC(Round) void CallFunctionAccessFunction( const Sequence< Any >& aArgs, const OUString& sFuncName, SbxVariable* pRet ) { static Reference< XFunctionAccess > xFunc; - Any aRes; try { if ( !xFunc.is() ) diff --git a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx index a6313c8cdb34..782b0f9c8e95 100644 --- a/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx @@ -302,7 +302,6 @@ bool DataPointItemConverter::ApplySpecialItem( throw( uno::Exception ) { bool bChanged = false; - uno::Any aValue; switch( nWhichId ) { diff --git a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx index 284b2c7e3b60..e77860442c95 100644 --- a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx @@ -141,7 +141,6 @@ bool ErrorBarItemConverter::ApplySpecialItem( throw( uno::Exception ) { bool bChanged = false; - uno::Any aValue; switch( nWhichId ) { diff --git a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx index 72dd3f9368fc..bf4f050e0863 100644 --- a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx @@ -252,7 +252,6 @@ bool StatisticsItemConverter::ApplySpecialItem( throw( uno::Exception ) { bool bChanged = false; - uno::Any aValue; switch( nWhichId ) { diff --git a/chart2/source/tools/FillProperties.cxx b/chart2/source/tools/FillProperties.cxx index 668c2ef4de4b..ee92dfed486c 100644 --- a/chart2/source/tools/FillProperties.cxx +++ b/chart2/source/tools/FillProperties.cxx @@ -185,9 +185,6 @@ void lcl_AddDefaultsToMap_without_BitmapProperties( void lcl_AddDefaultsToMap_only_BitmapProperties( ::chart::tPropertyValueMap & rOutMap ) { - uno::Any aSalInt16Zero = uno::makeAny( sal_Int16( 0 )); - uno::Any aSalInt32SizeDefault = uno::makeAny( sal_Int32( 0 )); - ::chart::PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETX, 0 ); ::chart::PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_OFFSETY, 0 ); ::chart::PropertyHelper::setPropertyValueDefault< sal_Int16 >( rOutMap, FillProperties::PROP_FILL_BITMAP_POSITION_OFFSETX, 0 ); diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx index 87c863448c0f..b31427713cf1 100644 --- a/comphelper/source/container/enumerablemap.cxx +++ b/comphelper/source/container/enumerablemap.cxx @@ -417,7 +417,6 @@ namespace comphelper const Pair< Any, Any >* mapping = _initialValues.getConstArray(); const Pair< Any, Any >* mappingEnd = mapping + _initialValues.getLength(); - Any normalizedValue; for ( ; mapping != mappingEnd; ++mapping ) { impl_checkValue_throw( mapping->Second ); @@ -454,7 +453,6 @@ namespace comphelper else { Reference< XInterface > xValue( _value, UNO_QUERY ); - Any aTypedValue; if ( xValue.is() ) // XInterface is not-NULL, but is X(ValueType) not-NULL, too? xValue.set( xValue->queryInterface( m_aData.m_aValueType ), UNO_QUERY ); diff --git a/connectivity/source/commontools/parameters.cxx b/connectivity/source/commontools/parameters.cxx index 2b658c5e5d17..678bdae536d1 100644 --- a/connectivity/source/commontools/parameters.cxx +++ b/connectivity/source/commontools/parameters.cxx @@ -551,7 +551,6 @@ namespace dbtools const OUString* pDetailFields = m_aDetailFields.getConstArray(); sal_Int32 nMasterLen = m_aMasterFields.getLength(); - Any aParamType, aScale, aValue; // loop through all master fields. For each of them, get the respective column from the // parent , and forward it's current value as paramter value to the (inner) row set diff --git a/connectivity/source/drivers/file/FColumns.cxx b/connectivity/source/drivers/file/FColumns.cxx index c134c14ce162..1633812df86a 100644 --- a/connectivity/source/drivers/file/FColumns.cxx +++ b/connectivity/source/drivers/file/FColumns.cxx @@ -37,7 +37,6 @@ using namespace ::com::sun::star::lang; sdbcx::ObjectType OColumns::createObject(const OUString& _rName) { - const Any aCatalog; const OUString sCatalogName; const OUString sSchemaName(m_pTable->getSchema()); const OUString sTableName(m_pTable->getName()); diff --git a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx index d4844a687e2e..3ff17784aa4b 100644 --- a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx +++ b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx @@ -376,7 +376,6 @@ void Container::dropByIndex( sal_Int32 index ) } } - Any oldElement = m_values[index]; for( int i = index +1 ; i < m_values.getLength() ; i ++ ) { m_values[i-1] = m_values[i]; diff --git a/cui/source/dialogs/showcols.cxx b/cui/source/dialogs/showcols.cxx index 2ee0b9149048..7bce6ac6ef59 100644 --- a/cui/source/dialogs/showcols.cxx +++ b/cui/source/dialogs/showcols.cxx @@ -61,7 +61,6 @@ IMPL_LINK_NOARG(FmShowColsDialog, OnClickedOk) DBG_ASSERT(m_xColumns.is(), "FmShowColsDialog::OnClickedOk : you should call SetColumns before executing the dialog !"); if (m_xColumns.is()) { - ::com::sun::star::uno::Any aCol; ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xCol; for (sal_uInt16 i=0; i<m_aList.GetSelectEntryCount(); ++i) { diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx index 6b157f9701c8..29f4d0c0d460 100644 --- a/extensions/source/propctrlr/eventhandler.cxx +++ b/extensions/source/propctrlr/eventhandler.cxx @@ -435,7 +435,6 @@ namespace pcr { ScriptEventDescriptor aDescriptor( impl_getDescriptor_throw( _rName ) ); - Any aRet; Sequence< PropertyValue > aScriptDescriptor( 2 ); aScriptDescriptor[0].Name = "EventType"; aScriptDescriptor[0].Value <<= aDescriptor.ScriptType; diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index ca9d93b1fef4..56e63367b02a 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -1708,7 +1708,6 @@ namespace pcr OSL_VERIFY( _rNewValue >>= bUseSep ); // propagate the changes to the min/max/default fields - Any aCurrentProp; OUString aAffectedProps[] = { OUString(PROPERTY_VALUE), OUString(PROPERTY_DEFAULT_VALUE), OUString(PROPERTY_VALUEMIN), OUString(PROPERTY_VALUEMAX) }; for (sal_uInt16 i=0; i<SAL_N_ELEMENTS(aAffectedProps); ++i) { diff --git a/extensions/source/update/feed/updatefeed.cxx b/extensions/source/update/feed/updatefeed.cxx index 4faaf17bb39c..223decab3997 100644 --- a/extensions/source/update/feed/updatefeed.cxx +++ b/extensions/source/update/feed/updatefeed.cxx @@ -457,7 +457,7 @@ UpdateInformationProvider::load(const OUString& rURL) storeCommandInfo(nCommandId, xCommandProcessor); try { - uno::Any aResult = xCommandProcessor->execute(aCommand, nCommandId, + xCommandProcessor->execute(aCommand, nCommandId, static_cast < XCommandEnvironment *> (this)); } catch( const uno::Exception & /* e */ ) diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index bff5864bf3d9..71b0456a754c 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -2704,7 +2704,7 @@ void DffPropertyReader::CheckAndCorrectExcelTextRotation( SvStream& rIn, SfxItem } if ( !bRotateTextWithShape ) { - const com::sun::star::uno::Any* pAny, aAny; + const com::sun::star::uno::Any* pAny; SdrCustomShapeGeometryItem aGeometryItem((SdrCustomShapeGeometryItem&)rSet.Get( SDRATTR_CUSTOMSHAPE_GEOMETRY )); const OUString sTextRotateAngle( "TextRotateAngle" ); pAny = aGeometryItem.GetPropertyValueByName( sTextRotateAngle ); diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index d9f12c5cc5a9..6bdfdb1edfb7 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -1338,7 +1338,6 @@ sal_Bool SVGFilter::implGetPagePropSet( const Reference< XDrawPage > & rxPage ) /* We collect info on master page elements visibility, * and placeholder text shape content. */ - Any result; Reference< XPropertySet > xPropSet( rxPage, UNO_QUERY ); if( xPropSet.is() ) { diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 250d54ffd373..724def0244bb 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -2467,7 +2467,6 @@ void SAL_CALL ODatabaseForm::setControlModels(const Sequence<Reference<XControlM // HiddenControls and forms are not listed if (nNewCount <= nCount) { - Any aElement; sal_Int16 nTabIndex = 1; for (sal_Int32 i=0; i < nNewCount; ++i, ++pControls) { diff --git a/forms/source/component/File.cxx b/forms/source/component/File.cxx index c11c09ccb087..45445afd8d6b 100644 --- a/forms/source/component/File.cxx +++ b/forms/source/component/File.cxx @@ -142,7 +142,6 @@ void OFileControlModel::disposing() //------------------------------------------------------------------------------ Any OFileControlModel::getPropertyDefaultByHandle( sal_Int32 _nHandle ) const { - Any aReturn; switch ( _nHandle ) { case PROPERTY_ID_DEFAULT_TEXT: diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index d114a4c75205..41c03242454e 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -1119,8 +1119,6 @@ void SubstitutePathVariables::SetPredefinedPathVariables( PredefinedPathVariable aPreDefPathVariables.m_FixedVar[PREDEFVAR_SHARE_SUBDIR_NAME] = rtl::OUString(LIBO_SHARE_FOLDER); - Any aAny; - // Get inspath and userpath from bootstrap mechanism in every case as file URL ::utl::Bootstrap::PathStatus aState; OUString sVal ; diff --git a/framework/source/uiconfiguration/uicategorydescription.cxx b/framework/source/uiconfiguration/uicategorydescription.cxx index 973c157c342e..51b87846c2b0 100644 --- a/framework/source/uiconfiguration/uicategorydescription.cxx +++ b/framework/source/uiconfiguration/uicategorydescription.cxx @@ -301,7 +301,6 @@ Sequence< OUString > ConfigurationAccess_UICategory::getAllIds() if ( m_xConfigAccess.is() ) { - Any a; Reference< XNameAccess > xNameAccess; try diff --git a/include/com/sun/star/uno/Any.h b/include/com/sun/star/uno/Any.h index 35620109c824..72357e4eafdc 100644 --- a/include/com/sun/star/uno/Any.h +++ b/include/com/sun/star/uno/Any.h @@ -43,7 +43,7 @@ namespace uno return true if the any contains an assignable value (no data loss), e.g. the any contains a short and you >>= it into a long variable. */ -class Any : public uno_Any +class SAL_WARN_UNUSED Any : public uno_Any { public: /// @cond INTERNAL diff --git a/pyuno/source/module/pyuno_callable.cxx b/pyuno/source/module/pyuno_callable.cxx index a4c791286dcc..79ee6ffb862d 100644 --- a/pyuno/source/module/pyuno_callable.cxx +++ b/pyuno/source/module/pyuno_callable.cxx @@ -68,7 +68,6 @@ PyObject* PyUNO_callable_call( Sequence<Any> aOutParam; Sequence<Any> aParams; Any any_params; - Any out_params; Any ret_value; RuntimeCargo *cargo = 0; me = (PyUNO_callable*) self; diff --git a/reportdesign/source/ui/inspection/DataProviderHandler.cxx b/reportdesign/source/ui/inspection/DataProviderHandler.cxx index ef9ecfdfcbf7..8cef137d0ed3 100644 --- a/reportdesign/source/ui/inspection/DataProviderHandler.cxx +++ b/reportdesign/source/ui/inspection/DataProviderHandler.cxx @@ -213,7 +213,6 @@ uno::Any SAL_CALL DataProviderHandler::getPropertyValue(const OUString & Propert void SAL_CALL DataProviderHandler::setPropertyValue(const OUString & PropertyName, const uno::Any & Value) throw (uno::RuntimeException, beans::UnknownPropertyException) { ::osl::MutexGuard aGuard( m_aMutex ); - uno::Any aPropertyValue; const sal_Int32 nId = m_pInfoService->getPropertyId(PropertyName); switch(nId) { diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index b1cbaead87ae..443c6e1556f6 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -2652,7 +2652,6 @@ ScVbaRange::setWrapText( const uno::Any& aIsWrapped ) throw (script::BasicErrorE if ( m_Areas->getCount() > 1 ) { sal_Int32 nItems = m_Areas->getCount(); - uno::Any aResult; for ( sal_Int32 index=1; index <= nItems; ++index ) { uno::Reference< excel::XRange > xRange( m_Areas->Item( uno::makeAny(index), uno::Any() ), uno::UNO_QUERY_THROW ); diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx index e99f289da2af..18dc10dc8794 100644 --- a/sd/source/core/drawdoc4.cxx +++ b/sd/source/core/drawdoc4.cxx @@ -604,8 +604,6 @@ void SdDrawDocument::CreateDefaultCellStyles() rISet.Put( aBoxItem ); - Any aDefaultCellStyle( Reference< XStyle >( static_cast< XWeak* >( pSheet ), UNO_QUERY ) ); - // ---- default -------------------------------------------------- Any aGray1( implMakeSolidCellStyle( pSSPool, "gray1" , aDefaultCellStyleName, RGB_COLORDATA(230,230,230))); diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx index 50198a3d7bc3..2d81d3631b1c 100644 --- a/sd/source/ui/unoidl/unosrch.cxx +++ b/sd/source/ui/unoidl/unosrch.cxx @@ -404,7 +404,6 @@ uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SdUnoSearchReplaceS uno::Reference< drawing::XShape > SdUnoSearchReplaceShape::GetNextShape( uno::Reference< container::XIndexAccess > xShapes, uno::Reference< drawing::XShape > xCurrentShape ) throw() { uno::Reference< drawing::XShape > xFound; - uno::Any aAny; if(xShapes.is() && xCurrentShape.is()) { diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx index fc0568808f42..f126fc681679 100644 --- a/sfx2/source/appl/helpinterceptor.cxx +++ b/sfx2/source/appl/helpinterceptor.cxx @@ -83,7 +83,6 @@ void HelpInterceptor_Impl::addURL( const OUString& rURL ) Reference<XController> xController; if(xFrame.is()) xController = xFrame->getController(); - Any aViewData; if(xController.is() && !m_pHistory->empty()) { m_pHistory->at( m_nCurPos )->aViewData = xController->getViewData(); diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 34e9d9610370..09bc35a2350a 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -3531,7 +3531,6 @@ static void ConvertSlotsToCommands( SfxObjectShell* pDoc, Reference< container:: { if ( pDoc ) { - Any aAny; SfxModule* pModule( pDoc->GetFactory().GetModule() ); OUString aSlotCmd( "slot:" ); OUString aUnoCmd( ".uno:" ); diff --git a/svtools/source/control/toolbarmenuacc.cxx b/svtools/source/control/toolbarmenuacc.cxx index da3ebdc04ae3..e0d2dd5dffd9 100644 --- a/svtools/source/control/toolbarmenuacc.cxx +++ b/svtools/source/control/toolbarmenuacc.cxx @@ -83,8 +83,6 @@ IMPL_LINK( ToolbarMenuAcc, WindowEventListener, VclSimpleEvent*, pEvent ) void ToolbarMenuAcc::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) { - Any aOldValue, aNewValue; - switch ( rVclWindowEvent.GetId() ) { case VCLEVENT_OBJECT_DYING: diff --git a/svtools/source/uno/unoiface.cxx b/svtools/source/uno/unoiface.cxx index 2ce4aa80164b..e0cf91e1b3b0 100644 --- a/svtools/source/uno/unoiface.cxx +++ b/svtools/source/uno/unoiface.cxx @@ -1987,8 +1987,6 @@ void SVTXCurrencyField::setProperty( const OUString& PropertyName, const ::com:: { SolarMutexGuard aGuard; - ::com::sun::star::uno::Any aReturn; - DoubleCurrencyField* pField = (DoubleCurrencyField*)GetFormattedField(); if ( pField ) { diff --git a/svx/source/accessibility/AccessibleFrameSelector.cxx b/svx/source/accessibility/AccessibleFrameSelector.cxx index 64dd1d1b497d..fd913e6f1403 100644 --- a/svx/source/accessibility/AccessibleFrameSelector.cxx +++ b/svx/source/accessibility/AccessibleFrameSelector.cxx @@ -501,7 +501,6 @@ Any AccFrameSelector::getAccessibleKeyBinding( ) throw (RuntimeException) sal_Int32 AccFrameSelector::getForeground( ) throw (RuntimeException) { - Any aRet; SolarMutexGuard aGuard; IsValid(); return mpFrameSel->GetControlForeground().GetColor(); @@ -512,7 +511,6 @@ sal_Int32 AccFrameSelector::getForeground( ) sal_Int32 AccFrameSelector::getBackground( ) throw (RuntimeException) { - Any aRet; SolarMutexGuard aGuard; IsValid(); return mpFrameSel->GetControlBackground().GetColor(); diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index a7dde067640b..b47d510cf548 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -1750,9 +1750,6 @@ void DbCheckBox::updateFromModel( Reference< XPropertySet > _rxModel ) //------------------------------------------------------------------------------ sal_Bool DbCheckBox::commitControl() { -#if OSL_DEBUG_LEVEL > 0 - Any aVal = makeAny( (sal_Int16)( static_cast< CheckBoxControl* >( m_pWindow )->GetBox().GetState() ) ); -#endif m_rColumn.getModel()->setPropertyValue( FM_PROP_STATE, makeAny( (sal_Int16)( static_cast< CheckBoxControl* >( m_pWindow )->GetBox().GetState() ) ) ); return sal_True; diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index fbcc2675cf7c..2865dbdd0b7f 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -3300,7 +3300,6 @@ void FmXFormShell::CreateExternalView() FmXBoundFormFieldIterator aModelIterator(xCurrentNavController->getModel()); Reference< XPropertySet> xCurrentModelSet; - Any aCurrentBoundField; OUString sColumnType,aGroupName,sControlSource; Sequence< Property> aProps; Reference< XPropertySet> xCurrentBoundField; diff --git a/svx/source/tbxctrls/extrusioncontrols.cxx b/svx/source/tbxctrls/extrusioncontrols.cxx index fd71d7a4f52a..8f4e8e855259 100644 --- a/svx/source/tbxctrls/extrusioncontrols.cxx +++ b/svx/source/tbxctrls/extrusioncontrols.cxx @@ -461,7 +461,6 @@ IMPL_LINK_NOARG(ExtrusionDepthWindow, SelectHdl) const OUString aCommand( ".uno:ExtrusionDepthDialog" ); - Any a; Sequence< PropertyValue > aArgs( 2 ); aArgs[0].Name = OUString( "Depth" ); aArgs[0].Value <<= mfDepth; diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 4eedc95aca35..50290c91d8c5 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -4582,7 +4582,6 @@ void SwWW8ImplReader::ReadDocVars() for(size_t i=0; i<aDocVarStrings.size(); i++) { - uno::Any aDefaultValue; const OUString &rName = aDocVarStrings[i]; uno::Any aValue; aValue <<= OUString(aDocValueStrings[i]); diff --git a/sw/source/ui/lingu/hhcwrp.cxx b/sw/source/ui/lingu/hhcwrp.cxx index b53f2d101c3c..8db9eb815375 100644 --- a/sw/source/ui/lingu/hhcwrp.cxx +++ b/sw/source/ui/lingu/hhcwrp.cxx @@ -734,9 +734,7 @@ bool SwHHCWrapper::ConvContinue_impl( SwConversionArgs *pConversionArgs ) bool bProgress = !m_bIsDrawObj && !m_bIsSelection; pConversionArgs->aConvText = OUString(); pConversionArgs->nConvTextLang = LANGUAGE_NONE; - uno::Any aRet = bProgress ? - m_pView->GetWrtShell().SpellContinue( &m_nPageCount, &m_nPageStart, pConversionArgs ) : - m_pView->GetWrtShell().SpellContinue( &m_nPageCount, NULL, pConversionArgs ); + m_pView->GetWrtShell().SpellContinue( &m_nPageCount, bProgress ? &m_nPageStart : NULL, pConversionArgs ); return !pConversionArgs->aConvText.isEmpty(); } diff --git a/sw/source/ui/uiview/view.cxx b/sw/source/ui/uiview/view.cxx index 7e783ba91647..c7930b8c1291 100644 --- a/sw/source/ui/uiview/view.cxx +++ b/sw/source/ui/uiview/view.cxx @@ -1471,7 +1471,6 @@ void SwView::WriteUserDataSequence ( uno::Sequence < beans::PropertyValue >& rSe { const SwRect& rRect = m_pWrtShell->GetCharRect(); const Rectangle& rVis = GetVisArea(); - Any aAny; rSequence.realloc ( NUM_VIEW_SETTINGS ); sal_Int16 nIndex = 0; diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index b9dc0f0a1400..d14009bcc271 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -2278,7 +2278,6 @@ PropertyState SAL_CALL SwXTextDocument::getPropertyState( const OUString& rPrope if(!pEntry) throw UnknownPropertyException(); - Any aAny; switch(pEntry->nWID) { case 0:default:break; diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx index 096d07c0d848..06b532e8862e 100644 --- a/toolkit/source/controls/dialogcontrol.cxx +++ b/toolkit/source/controls/dialogcontrol.cxx @@ -496,7 +496,6 @@ throw (::com::sun::star::uno::RuntimeException) if ( pOutDev && !mbPosModified ) { // Currentley we are simply using MAP_APPFONT - Any aAny; ::Size aTmp( e.X, e.Y ); aTmp = ImplMapPixelToAppFont( pOutDev, aTmp ); diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx index f06f7e76699d..e7c8c78807f9 100644 --- a/toolkit/source/controls/tabpagemodel.cxx +++ b/toolkit/source/controls/tabpagemodel.cxx @@ -283,7 +283,6 @@ throw (::com::sun::star::uno::RuntimeException) if ( pOutDev && !mbPosModified ) { // Currentley we are simply using MAP_APPFONT - Any aAny; ::Size aTmp( e.X, e.Y ); aTmp = ImplMapPixelToAppFont( pOutDev, aTmp ); diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index b84963c381b6..75991125df70 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -2261,7 +2261,6 @@ shell::commit( const shell::ContentMap::iterator& it, const osl::FileStatus& aFileStatus ) { uno::Any aAny; - uno::Any emptyAny; shell::PropertySet::iterator it1; if( it->second.properties == 0 ) diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx index 936270beccc8..79502b36abb1 100644 --- a/unotools/source/misc/mediadescriptor.cxx +++ b/unotools/source/misc/mediadescriptor.cxx @@ -390,7 +390,6 @@ sal_Bool MediaDescriptor::isStreamReadOnly() const css::uno::Any MediaDescriptor::getComponentDataEntry( const OUString& rName ) const { - css::uno::Any aEntry; comphelper::SequenceAsHashMap::const_iterator aPropertyIter = find( PROP_COMPONENTDATA() ); if( aPropertyIter != end() ) return comphelper::NamedValueCollection( aPropertyIter->second ).get( rName ); diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx index 23a79d4e4ba9..b777dbe055af 100644 --- a/vcl/source/gdi/outdev.cxx +++ b/vcl/source/gdi/outdev.cxx @@ -2608,7 +2608,6 @@ SystemGraphicsData OutputDevice::GetSystemGfxData() const ::com::sun::star::uno::Any OutputDevice::GetSystemGfxDataAny() const { - ::com::sun::star::uno::Any aRet; const SystemGraphicsData aSysData = GetSystemGfxData(); ::com::sun::star::uno::Sequence< sal_Int8 > aSeq( (sal_Int8*)&aSysData, aSysData.nSize ); diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index b699048b33b0..add66b13300b 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -2562,7 +2562,6 @@ namespace { if( !aData.getLength() ) aData = xDataSequence->getData(); - uno::Any aAny; OUString aString; sal_Int32 nCount = aData.getLength(); for( sal_Int32 i = 0; i < nCount; ++i ) diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx index 0093b3844b0d..4c87b9fedc96 100644 --- a/xmloff/source/style/styleexp.cxx +++ b/xmloff/source/style/styleexp.cxx @@ -341,8 +341,6 @@ sal_Bool XMLStyleExport::exportDefaultStyle( Reference< XPropertySetInfo > xPropSetInfo = xPropSet->getPropertySetInfo(); - Any aAny; - // <style:default-style ...> GetExport().CheckAttrList(); diff --git a/xmloff/source/text/XMLSectionExport.cxx b/xmloff/source/text/XMLSectionExport.cxx index dbd3775d7e33..940be018da25 100644 --- a/xmloff/source/text/XMLSectionExport.cxx +++ b/xmloff/source/text/XMLSectionExport.cxx @@ -564,9 +564,6 @@ void XMLSectionExport::ExportTableOfContentStart( // scope for table-of-content-source element { - - Any aAny; - // TOC specific index source attributes: // outline-level: 1..10 diff --git a/xmloff/source/text/txtstyle.cxx b/xmloff/source/text/txtstyle.cxx index ed0075c70fff..0f690b0c20d7 100644 --- a/xmloff/source/text/txtstyle.cxx +++ b/xmloff/source/text/txtstyle.cxx @@ -47,7 +47,6 @@ void XMLTextParagraphExport::exportStyleAttributes( ::com::sun::star::style::XStyle > & rStyle ) { OUString sName; - Any aAny; Reference< XPropertySet > xPropSet( rStyle, UNO_QUERY ); Reference< XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo()); diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index a0de9398f6b4..e1ec7731e864 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -120,7 +120,6 @@ bool DigitalSignaturesDialog::isXML(const OUString& rURI ) for (int i = 0; i < m_manifest.getLength(); i++) { - Any digest; const Sequence< css::beans::PropertyValue >& entry = m_manifest[i]; OUString sPath, sMediaType; bool bEncrypted = false; |