You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ar...@apache.org on 2012/11/14 22:35:49 UTC

svn commit: r1409428 - in /incubator/ooo/branches/gbuild/main/writerfilter: qa/cppunittests/xxml/ source/dmapper/

Author: arist
Date: Wed Nov 14 21:35:47 2012
New Revision: 1409428

URL: http://svn.apache.org/viewvc?rev=1409428&view=rev
Log:
writerfilter10_03_d55fc25e48ab.patch
# HG changeset patch
# User Henning Brinkmann <hb...@openoffice.org>
# Date 1295456630 -3600
# Node ID d55fc25e48ab45f1249a88d18231c7c71e3797bc
# Parent  52fa74a01a020832bb69ed03b068b41b59ba221b
imported patch cppcheck


Modified:
    incubator/ooo/branches/gbuild/main/writerfilter/qa/cppunittests/xxml/testXXML.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableManager.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/FormControlHelper.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/GraphicImport.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/ModelEventListener.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.hxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/OLEHandler.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMap.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMapHelper.cxx
    incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/StyleSheetTable.cxx

Modified: incubator/ooo/branches/gbuild/main/writerfilter/qa/cppunittests/xxml/testXXML.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/qa/cppunittests/xxml/testXXML.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/qa/cppunittests/xxml/testXXML.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/qa/cppunittests/xxml/testXXML.cxx Wed Nov 14 21:35:47 2012
@@ -123,25 +123,29 @@ public:
 	}
 	virtual void endElement(QName_t name)
 	{
-		//printf("</{%s}:%s>\n", QName::serializer().getNamespaceUri(name), QName::serializer().getLocalName(name));
-		events++;
-		switch(name)
-		{
-		case NS_table::LN_table:
-		case NS_ss11::LN_Table:
-			currentRow->append(*currentTable);
-			currentRow=NULL;
-			break;
-		case NS_table::LN_table_row:
-		case NS_ss11::LN_Row:
-			currentCell->append(*currentRow);
-			currentCell=NULL;
-			break;
-		case NS_table::LN_table_cell:
-		case NS_ss11::LN_Cell:
-			break;
-
-		};
+            //printf("</{%s}:%s>\n", QName::serializer().getNamespaceUri(name), QName::serializer().getLocalName(name));
+            events++;
+            switch(name)
+            {
+            case NS_table::LN_table:
+            case NS_ss11::LN_Table:
+                if (currentTable != NULL)
+                {
+                    currentRow->append(*currentTable);
+                }
+                currentRow=NULL;
+                break;
+            case NS_table::LN_table_row:
+            case NS_ss11::LN_Row:
+                if (currentRow != NULL)
+                    currentCell->append(*currentRow);
+                currentCell=NULL;
+                break;
+            case NS_table::LN_table_cell:
+            case NS_ss11::LN_Cell:
+                break;
+                
+            };
 	}
 	virtual void characters(const xxml::Value &value)
 	{

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper.cxx Wed Nov 14 21:35:47 2012
@@ -2847,7 +2847,7 @@ void DomainMapper::sprmWithProps( Sprm& 
                 {
                     //get value from style sheet and invert it
                     sal_Int16 nStyleValue = 0;
-                    double fDoubleValue;
+                    double fDoubleValue = 0.0;
                     uno::Any aStyleVal = m_pImpl->GetPropertyFromStyleSheet(ePropertyId);
                     if( !aStyleVal.hasValue() )
                     {
@@ -3863,8 +3863,9 @@ void DomainMapper::sprmWithProps( Sprm& 
                 xLineNumberingPropSet->setPropertyValue(rNameSupplier.GetName( PROP_DISTANCE ), uno::makeAny(aSettings.nDistance) );
             xLineNumberingPropSet->setPropertyValue(rNameSupplier.GetName( PROP_RESTART_AT_EACH_PAGE ), uno::makeAny(aSettings.bRestartAtEachPage) );
         }
-        catch( const uno::Exception& )
+        catch( const uno::Exception& e)
         {
+            (void) e;
         }
 
     }
@@ -4150,8 +4151,9 @@ void DomainMapper::sprmWithProps( Sprm& 
                                                                     uno::makeAny( nNumType ));
             }
         }
-        catch( const uno::Exception& )
+        catch( const uno::Exception& e)
         {
+            (void) e;
         }
     }
     break;
@@ -4519,8 +4521,9 @@ void DomainMapper::lcl_utext(const sal_u
 
         }
     }
-    catch( const uno::RuntimeException& )
+    catch( const uno::RuntimeException& e)
     {
+        (void) e;
     }
 }
 /*-- 09.06.2006 09:52:15---------------------------------------------------

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableHandler.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableHandler.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableHandler.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableHandler.cxx Wed Nov 14 21:35:47 2012
@@ -733,12 +733,14 @@ void DomainMapperTableHandler::endTable(
         }
         catch (lang::IllegalArgumentException e)
         {
+            (void) e;
 #ifdef DEBUG_DMAPPER_TABLE_HANDLER
             dmapper_logger->chars("failed to import table!");
 #endif
         }
         catch ( uno::Exception e )
         {
+            (void) e;
 #ifdef DEBUG_DMAPPER_TABLE_HANDLER
             dmapper_logger->startElement("exception");
             dmapper_logger->chars(rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr( ));

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableManager.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableManager.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableManager.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapperTableManager.cxx Wed Nov 14 21:35:47 2012
@@ -67,8 +67,8 @@ DomainMapperTableManager::DomainMapperTa
   -----------------------------------------------------------------------*/
 DomainMapperTableManager::~DomainMapperTableManager()
 {
-    if ( m_pTablePropsHandler )
-        delete m_pTablePropsHandler, m_pTablePropsHandler = NULL;
+    delete m_pTablePropsHandler;
+  m_pTablePropsHandler = NULL;
 }
 /*-- 23.04.2007 15:25:37---------------------------------------------------
 

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/DomainMapper_Impl.cxx Wed Nov 14 21:35:47 2012
@@ -218,8 +218,9 @@ void DomainMapper_Impl::SetDocumentSetti
         {
             xSettings->setPropertyValue( rPropName, rValue );
         }
-        catch( const uno::Exception& )
+        catch( const uno::Exception& e)
         {
+            (void) e;
         }
     }
 }
@@ -251,9 +252,22 @@ void DomainMapper_Impl::SetIsLastParagra
 void    DomainMapper_Impl::PushProperties(ContextType eId)
 {
     SectionPropertyMap* pSectionContext = 0;
-    PropertyMapPtr pInsert(eId == CONTEXT_SECTION ?
-        (pSectionContext = new SectionPropertyMap( m_bIsFirstSection )) :
-        eId == CONTEXT_PARAGRAPH ? new ParagraphPropertyMap :  new PropertyMap);
+    PropertyMapPtr pInsert;
+
+    switch (eId)
+    {
+    case CONTEXT_SECTION:
+        pSectionContext = new SectionPropertyMap( m_bIsFirstSection );
+        pInsert.reset(pSectionContext);
+        break;
+    case CONTEXT_PARAGRAPH:
+        pInsert.reset(new ParagraphPropertyMap);
+        break;
+    default:
+        pInsert.reset(new PropertyMap);
+        break;
+    }
+
     if(eId == CONTEXT_SECTION)
     {
         if( m_bIsFirstSection )
@@ -846,9 +860,10 @@ void DomainMapper_Impl::finishParagraph(
 #endif
                         xObj->attach( xTextRange );
                     } 
-                    catch ( uno::RuntimeException& )
+                    catch ( uno::RuntimeException& e)
                     {
                         // this is normal: the shape is already attached
+                        (void) e;
                     }   
                     m_aAnchoredStack.pop( );
                 }
@@ -954,11 +969,13 @@ void DomainMapper_Impl::appendTextConten
         {
             xTextAppendAndConvert->appendTextContent( xContent, xPropertyValues );
         }
-        catch(const lang::IllegalArgumentException& )
+        catch(const lang::IllegalArgumentException& e)
         {
+            (void) e;
         }
-        catch(const uno::Exception& )
+        catch(const uno::Exception& e)
         {
+            (void) e;
         }
     }
 }
@@ -1025,8 +1042,9 @@ uno::Reference< beans::XPropertySet > Do
             xSection->attach( uno::Reference< text::XTextRange >( xCursor, uno::UNO_QUERY_THROW) );
             xRet = uno::Reference< beans::XPropertySet > (xSection, uno::UNO_QUERY );
         }
-        catch(const uno::Exception& )
+        catch(const uno::Exception& e)
         {
+            (void) e;
         }
 
     }
@@ -1066,8 +1084,9 @@ void DomainMapper_Impl::PushPageHeader(S
             xPageStyle->getPropertyValue(rPropNameSupplier.GetName( bLeft ? PROP_HEADER_TEXT_LEFT : PROP_HEADER_TEXT) ) >>= xHeaderText;
             m_aTextAppendStack.push( uno::Reference< text::XTextAppend >( xHeaderText, uno::UNO_QUERY_THROW));
         }
-        catch( uno::Exception& )
+        catch( uno::Exception& e)
         {
+            (void) e;
         }
     }
 }
@@ -1103,8 +1122,9 @@ void DomainMapper_Impl::PushPageFooter(S
             xPageStyle->getPropertyValue(rPropNameSupplier.GetName( bLeft ? PROP_FOOTER_TEXT_LEFT : PROP_FOOTER_TEXT) ) >>= xFooterText;
             m_aTextAppendStack.push(uno::Reference< text::XTextAppend >( xFooterText, uno::UNO_QUERY_THROW ));
         }
-        catch( uno::Exception& )
+        catch( uno::Exception& e)
         {
+            (void) e;
         }
     }
 }
@@ -1307,6 +1327,7 @@ void DomainMapper_Impl::PushShapeContext
     } 
     catch ( const uno::Exception& e )
     {
+        (void) e;
 #if DEBUG
         clog << "Exception when adding shape: ";
         clog << rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr( );
@@ -2229,8 +2250,9 @@ void DomainMapper_Impl::SetNumberFormat(
             PropertyNameSupplier::GetPropertyNameSupplier().GetName(PROP_NUMBER_FORMAT),
             uno::makeAny( nKey ));
     }
-    catch(const uno::Exception&)
+    catch(const uno::Exception& e)
     {
+        (void) e;
     }
 }
 
@@ -3375,15 +3397,16 @@ void DomainMapper_Impl::SetFieldResult( 
                              uno::makeAny( rResult ));
                     }
                 }
-                catch( const beans::UnknownPropertyException& )
+                catch( const beans::UnknownPropertyException& e)
                 {
+                    (void) e;
                     //some fields don't have a CurrentPresentation (DateTime)
                 }
             }
         }
-        catch( uno::Exception& )
+        catch( uno::Exception& e)
         {
-
+            (void) e;
         }
     }
 }
@@ -3523,8 +3546,9 @@ void DomainMapper_Impl::AddBookmark( con
             m_aBookmarkMap.insert(BookmarkMap_t::value_type( rId, BookmarkInsertPosition( bIsStart, rBookmarkName, xCurrent ) ));
         }
     }
-    catch( const uno::Exception& )
+    catch( const uno::Exception& e)
     {
+        (void) e;
         //TODO: What happens to bookmarks where start and end are at different XText objects?
     }
 }
@@ -3592,10 +3616,10 @@ void DomainMapper_Impl::SetLineNumbering
             xProperties->setPropertyValue( rPropNameSupplier.GetName( PROP_NUMBERING_TYPE         ), uno::makeAny( style::NumberingType::ARABIC));
             xProperties->setPropertyValue( rPropNameSupplier.GetName( PROP_RESTART_AT_EACH_PAGE   ), uno::makeAny( nLnc == 0 ));
         }
-        catch( const uno::Exception& )
-        {}
-
-
+        catch( const uno::Exception& e)
+        {
+            (void) e;
+        }
 
 /*
         { SW_PROP_NAME(UNO_NAME_CHAR_STYLE_NAME
@@ -3781,8 +3805,9 @@ void DomainMapper_Impl::ApplySettingsTab
             sal_Int32 nDefTab = m_pSettingsTable->GetDefaultTabStop();
             xTextDefaults->setPropertyValue( PropertyNameSupplier::GetPropertyNameSupplier().GetName( PROP_TAB_STOP_DISTANCE ), uno::makeAny(nDefTab) );
         }
-        catch(const uno::Exception& )
+        catch(const uno::Exception& e)
         {
+            (void) e;
         }    
     }    
 }

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/FormControlHelper.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/FormControlHelper.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/FormControlHelper.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/FormControlHelper.cxx Wed Nov 14 21:35:47 2012
@@ -185,6 +185,7 @@ bool FormControlHelper::createCheckbox(u
         }
         catch (beans::UnknownPropertyException & rException)
         {
+            (void) rException;
         }
     }
     

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/GraphicImport.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/GraphicImport.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/GraphicImport.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/GraphicImport.cxx Wed Nov 14 21:35:47 2012
@@ -1092,6 +1092,7 @@ void GraphicImport::lcl_attribute(Id nNa
                     }
                     catch( const beans::UnknownPropertyException e )
                     {
+                        (void) e;
                         // It isn't a graphic image
                     }
     
@@ -1733,8 +1734,9 @@ uno::Reference< text::XTextContent > Gra
                         xNamed->setName( m_pImpl->sName );
                     }    
                 }
-                catch( const uno::Exception& )
+                catch( const uno::Exception& e)
                 {
+                    (void) e;
                 }    
             }    
         }

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/ModelEventListener.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/ModelEventListener.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/ModelEventListener.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/ModelEventListener.cxx Wed Nov 14 21:35:47 2012
@@ -83,8 +83,9 @@ void ModelEventListener::disposing( cons
         uno::Reference<document::XEventBroadcaster>(rEvent.Source, uno::UNO_QUERY )->removeEventListener(
             uno::Reference<document::XEventListener>(this));
     }
-    catch( const uno::Exception& )
+    catch( const uno::Exception& e)
     {
+        (void) e;
     }    
 }
 

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.cxx Wed Nov 14 21:35:47 2012
@@ -503,8 +503,9 @@ uno::Reference< container::XNameContaine
 
         oFamily >>= xStyles;
     }
-    catch ( const uno::Exception )
+    catch ( const uno::Exception e)
     {
+        (void) e;
     }
 
     return xStyles;

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.hxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.hxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.hxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/NumberingManager.hxx Wed Nov 14 21:35:47 2012
@@ -143,13 +143,13 @@ public:
     void AddRGISTD( rtl::OUString sValue ) { m_sRGISTD += sValue; };
 
     // Accessors
-    sal_Int32             GetId( ) { return m_nId; };
+    sal_Int32             GetId( ) const { return m_nId; };
 
     sal_Int16             Size( ) { return sal_Int16( m_aLevels.size( ) ); };
     ListLevel::Pointer    GetLevel( sal_uInt16 nLvl );
     void                  AddLevel( );
 
-    ListLevel::Pointer    GetCurrentLevel( ) { return m_pCurrentLevel; };
+    ListLevel::Pointer    GetCurrentLevel( ) const { return m_pCurrentLevel; };
 
     virtual com::sun::star::uno::Sequence< 
         com::sun::star::uno::Sequence< 

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/OLEHandler.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/OLEHandler.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/OLEHandler.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/OLEHandler.cxx Wed Nov 14 21:35:47 2012
@@ -125,6 +125,7 @@ void OLEHandler::lcl_attribute(Id rName,
                 }
                 catch( const uno::Exception& e )
                 {
+                    (void) e;
 #if DEBUG
                     clog << "Exception in OLE Handler: ";
                     clog << rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr( ) << endl;
@@ -175,6 +176,7 @@ void OLEHandler::lcl_sprm(Sprm & rSprm)
                 }
                 catch( const uno::Exception& e )
                 {
+                    (void) e;
 #if DEBUG
                     clog << "Exception in OLE Handler: ";
                     clog << rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr( ) << endl;

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMap.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMap.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMap.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMap.cxx Wed Nov 14 21:35:47 2012
@@ -129,6 +129,7 @@ void lcl_AnyToTag(XMLTag::Pointer_t pTag
         pTag->addAttr("stringValue", aStr);                    
     }
     catch (...) {
+        pTag->addAttr("exception", "true");
     }
 }
 
@@ -195,6 +196,7 @@ XMLTag::Pointer_t PropertyMap::toTag() c
                     pTag->addAttr("stringValue", aStr);                    
                 }
                 catch (...) {
+                    pTag->addAttr("exception", "true");
                 }
             }
                 break;
@@ -422,8 +424,9 @@ uno::Reference< beans::XPropertySet > Se
         }
 
     }
-    catch( const uno::Exception& )
+    catch( const uno::Exception& e)
     {
+        (void) e;
     }
 
     return xRet;
@@ -729,6 +732,7 @@ void SectionPropertyMap::CopyLastHeaderF
         }
         catch ( const uno::Exception& e )
         {
+            (void) e;
 #if DEBUG
             clog << "An exception occured in SectionPropertyMap::CopyLastHeaderFooter( ) - ";
             clog << rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr( ) << endl;

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMapHelper.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMapHelper.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMapHelper.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/PropertyMapHelper.cxx Wed Nov 14 21:35:47 2012
@@ -73,6 +73,7 @@ XMLTag::Pointer_t lcl_PropertyValuesToTa
         }
         catch (...)
         {
+            pTag->addAttr("exception", "true");
         }
         
         if (pValues[n].Name.equalsAscii("TableColumnSeparators"))

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/StyleSheetTable.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/StyleSheetTable.cxx?rev=1409428&r1=1409427&r2=1409428&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/StyleSheetTable.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/dmapper/StyleSheetTable.cxx Wed Nov 14 21:35:47 2012
@@ -1315,8 +1315,9 @@ void StyleSheetTable::applyDefaults(bool
             }
         }
     }
-    catch( const uno::Exception& )
+    catch( const uno::Exception& e)
     {
+        (void) e;
     }    
 }
 /*-- 05.02.2008 10:27:36---------------------------------------------------