[Libreoffice-commits] core.git: basic/source chart2/source comphelper/source connectivity/source cui/source extensions/source filter/source forms/source framework/source include/com pyuno/source reportdesign/source sc/source sd/source sfx2/source svtools/source svx/source sw/source toolkit/source ucb/source unotools/source vcl/source xmloff/source xmlsecurity/source

Stephan Bergmann sbergman at redhat.com
Thu Nov 14 12:03:16 PST 2013


 basic/source/runtime/methods1.cxx                                   |    1 -
 chart2/source/controller/itemsetwrapper/DataPointItemConverter.cxx  |    1 -
 chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx   |    1 -
 chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx |    1 -
 chart2/source/tools/FillProperties.cxx                              |    3 ---
 comphelper/source/container/enumerablemap.cxx                       |    2 --
 connectivity/source/commontools/parameters.cxx                      |    1 -
 connectivity/source/drivers/file/FColumns.cxx                       |    1 -
 connectivity/source/drivers/postgresql/pq_xcontainer.cxx            |    1 -
 cui/source/dialogs/showcols.cxx                                     |    1 -
 extensions/source/propctrlr/eventhandler.cxx                        |    1 -
 extensions/source/propctrlr/formcomponenthandler.cxx                |    1 -
 extensions/source/update/feed/updatefeed.cxx                        |    2 +-
 filter/source/msfilter/msdffimp.cxx                                 |    2 +-
 filter/source/svg/svgexport.cxx                                     |    1 -
 forms/source/component/DatabaseForm.cxx                             |    1 -
 forms/source/component/File.cxx                                     |    1 -
 framework/source/services/substitutepathvars.cxx                    |    2 --
 framework/source/uiconfiguration/uicategorydescription.cxx          |    1 -
 include/com/sun/star/uno/Any.h                                      |    2 +-
 pyuno/source/module/pyuno_callable.cxx                              |    1 -
 reportdesign/source/ui/inspection/DataProviderHandler.cxx           |    1 -
 sc/source/ui/vba/vbarange.cxx                                       |    1 -
 sd/source/core/drawdoc4.cxx                                         |    2 --
 sd/source/ui/unoidl/unosrch.cxx                                     |    1 -
 sfx2/source/appl/helpinterceptor.cxx                                |    1 -
 sfx2/source/doc/sfxbasemodel.cxx                                    |    1 -
 svtools/source/control/toolbarmenuacc.cxx                           |    2 --
 svtools/source/uno/unoiface.cxx                                     |    2 --
 svx/source/accessibility/AccessibleFrameSelector.cxx                |    2 --
 svx/source/fmcomp/gridcell.cxx                                      |    3 ---
 svx/source/form/fmshimp.cxx                                         |    1 -
 svx/source/tbxctrls/extrusioncontrols.cxx                           |    1 -
 sw/source/filter/ww8/ww8par.cxx                                     |    1 -
 sw/source/ui/lingu/hhcwrp.cxx                                       |    4 +---
 sw/source/ui/uiview/view.cxx                                        |    1 -
 sw/source/ui/uno/unotxdoc.cxx                                       |    1 -
 toolkit/source/controls/dialogcontrol.cxx                           |    1 -
 toolkit/source/controls/tabpagemodel.cxx                            |    1 -
 ucb/source/ucp/file/shell.cxx                                       |    1 -
 unotools/source/misc/mediadescriptor.cxx                            |    1 -
 vcl/source/gdi/outdev.cxx                                           |    1 -
 xmloff/source/chart/SchXMLExport.cxx                                |    1 -
 xmloff/source/style/styleexp.cxx                                    |    2 --
 xmloff/source/text/XMLSectionExport.cxx                             |    3 ---
 xmloff/source/text/txtstyle.cxx                                     |    1 -
 xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx              |    1 -
 47 files changed, 4 insertions(+), 62 deletions(-)

New commits:
commit ab5d1fbfb4956ec431dbceb6b4cc65f7b12e5c5f
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 14 21:02:07 2013 +0100

    SAL_WARN_UNUSED com::sun::star::uno::Any
    
    Change-Id: I9058044d13f696e07667dce706f6c311af6dbea0

diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index 0bfa568..78ac359 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 a6313c8..782b0f9 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 284b2c7..e778604 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 72dd3f9..bf4f050 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 668c2ef..ee92dfe 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 87c8634..b314277 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 2b658c5..678bdae 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 c134c14..1633812 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 d4844a6..3ff1778 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 2ee0b91..7bce6ac 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 6b157f9..29f4d0c 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 ca9d93b..56e6336 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 4faaf17..223deca 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 bff5864..71b0456 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 d9f12c5..6bdfdb1 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 250d54f..724def0 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 c11c09c..45445af 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 d114a4c..41c0324 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 973c157..51b8784 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 3562010..72357e4 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 a4c7912..79ee6ff 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 ef9ecfd..8cef137 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 b1cbaea..443c6e1 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 e99f289..18dc10d 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 50198a3..2d81d36 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 fc05688..f126fc6 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 34e9d96..09bc35a 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 da3ebdc..e0d2dd5 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 2ce4aa8..e0cf91e 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 64dd1d1..fd913e6 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 a7dde06..b47d510 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 fbcc267..2865dbd 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 fd71d7a..8f4e8e8 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 4eedc95..50290c9 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 b53f2d1..8db9eb8 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 7e783ba..c7930b8 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 b9dc0f0..d14009b 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 096d07c..06b532e 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 f06f7e7..e7c8c78 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 b84963c..7599112 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 936270b..79502b3 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 23a79d4..b777dbe 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 b699048..add66b1 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 0093b38..4c87b9f 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 dbd3775..940be01 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 ed0075c..0f690b0 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 a0de939..e1ec773 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;


More information about the Libreoffice-commits mailing list