summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-01-04 08:51:03 +0100
committerDavid Tardon <dtardon@redhat.com>2011-01-04 09:31:03 +0100
commite397e74641966211a7bd84dbb4e31e654d0219e3 (patch)
treed31afe68647608e9c6f0090ad4abdcbe4df91963 /svx
parentd6df179671488b9d59ecd51b87227a12d9dfe00c (diff)
cppcheck cleaning
Diffstat (limited to 'svx')
-rw-r--r--svx/source/accessibility/AccessibleShape.cxx4
-rw-r--r--svx/source/accessibility/DGColorNameLookUp.cxx8
-rw-r--r--svx/source/form/fmpage.cxx2
-rw-r--r--svx/source/form/fmsrcimp.cxx4
-rw-r--r--svx/source/svdraw/svdoole2.cxx2
-rw-r--r--svx/source/table/tablecolumn.cxx2
-rw-r--r--svx/source/table/tablerow.cxx1
-rw-r--r--svx/source/table/tableundo.hxx2
-rw-r--r--svx/source/xml/xmlexport.cxx2
-rw-r--r--svx/source/xml/xmlxtexp.cxx2
10 files changed, 16 insertions, 13 deletions
diff --git a/svx/source/accessibility/AccessibleShape.cxx b/svx/source/accessibility/AccessibleShape.cxx
index 1b2577a80c..fc696b5085 100644
--- a/svx/source/accessibility/AccessibleShape.cxx
+++ b/svx/source/accessibility/AccessibleShape.cxx
@@ -513,7 +513,7 @@ awt::Rectangle SAL_CALL AccessibleShape::getBounds (void)
aValue >>= aBoundingBox;
bFoundBoundRect = true;
}
- catch (beans::UnknownPropertyException e)
+ catch (beans::UnknownPropertyException const&)
{
// Handled below (bFoundBoundRect stays false).
}
@@ -891,7 +891,7 @@ void SAL_CALL
}
}
- catch (uno::RuntimeException e)
+ catch (uno::RuntimeException const&)
{
OSL_TRACE ("caught exception while disposing");
}
diff --git a/svx/source/accessibility/DGColorNameLookUp.cxx b/svx/source/accessibility/DGColorNameLookUp.cxx
index e836695321..7dc583f834 100644
--- a/svx/source/accessibility/DGColorNameLookUp.cxx
+++ b/svx/source/accessibility/DGColorNameLookUp.cxx
@@ -112,9 +112,9 @@ DGColorNameLookUp::DGColorNameLookUp (void)
aNames = xNA->getElementNames();
}
}
- catch (uno::RuntimeException e)
+ catch (uno::RuntimeException const&)
{
- // When an excpetion occurred then whe have an empty name sequence
+ // When an exception occurred then whe have an empty name sequence
// and the loop below is not entered.
}
@@ -130,9 +130,9 @@ DGColorNameLookUp::DGColorNameLookUp (void)
aColor >>= nColor;
maColorValueToNameMap[nColor] = aNames[i];
}
- catch (uno::RuntimeException e)
+ catch (uno::RuntimeException const&)
{
- // Ignore the exception: the color who lead to the excpetion
+ // Ignore the exception: the color who lead to the exception
// is not included into the map.
}
}
diff --git a/svx/source/form/fmpage.cxx b/svx/source/form/fmpage.cxx
index 962837e53b..562566419a 100644
--- a/svx/source/form/fmpage.cxx
+++ b/svx/source/form/fmpage.cxx
@@ -145,7 +145,7 @@ void FmFormPage::SetModel(SdrModel* pNewModel)
}
}
}
- catch( ::com::sun::star::uno::Exception ex )
+ catch( ::com::sun::star::uno::Exception const& )
{
OSL_ENSURE( sal_False, "UNO Exception caught resetting model for m_pImpl (FmFormPageImpl) in FmFormPage::SetModel" );
}
diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx
index 5822d9bc64..af644117a4 100644
--- a/svx/source/form/fmsrcimp.cxx
+++ b/svx/source/form/fmsrcimp.cxx
@@ -253,7 +253,7 @@ sal_Bool FmSearchEngine::MoveCursor()
else
m_xSearchCursor.previous();
}
- catch(::com::sun::star::sdbc::SQLException e)
+ catch(::com::sun::star::sdbc::SQLException const& e)
{
#if OSL_DEBUG_LEVEL > 0
String sDebugMessage;
@@ -264,7 +264,7 @@ sal_Bool FmSearchEngine::MoveCursor()
#endif
bSuccess = sal_False;
}
- catch(Exception e)
+ catch(Exception const& e)
{
#if OSL_DEBUG_LEVEL > 0
UniString sDebugMessage;
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index a8fa0ee759..145519ceee 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -1677,7 +1677,7 @@ void SdrOle2Obj::operator=(const SdrObject& rObj)
catch( uno::Exception& e )
{
(void)e;
- DBG_ERROR( "SdrOle2Obj::operator=(), unexcpected exception caught!" );
+ DBG_ERROR( "SdrOle2Obj::operator=(), unexpected exception caught!" );
}
} */
}
diff --git a/svx/source/table/tablecolumn.cxx b/svx/source/table/tablecolumn.cxx
index c083f1aad9..62258ee8af 100644
--- a/svx/source/table/tablecolumn.cxx
+++ b/svx/source/table/tablecolumn.cxx
@@ -98,6 +98,8 @@ TableColumn& TableColumn::operator=( const TableColumn& r )
mbOptimalWidth = r.mbOptimalWidth;
mbIsVisible = r.mbIsVisible;
mbIsStartOfNewPage = r.mbIsStartOfNewPage;
+ maName = r.maName;
+ mnColumn = r.mnColumn;
return *this;
}
diff --git a/svx/source/table/tablerow.cxx b/svx/source/table/tablerow.cxx
index 1a945cbf26..16764e2bc1 100644
--- a/svx/source/table/tablerow.cxx
+++ b/svx/source/table/tablerow.cxx
@@ -116,6 +116,7 @@ TableRow& TableRow::operator=( const TableRow& r )
mbIsVisible = r.mbIsVisible;
mbIsStartOfNewPage = r.mbIsStartOfNewPage;
maName = r.maName;
+ mnRow = r.mnRow;
return *this;
}
diff --git a/svx/source/table/tableundo.hxx b/svx/source/table/tableundo.hxx
index f5d4c8e52d..185a816c64 100644
--- a/svx/source/table/tableundo.hxx
+++ b/svx/source/table/tableundo.hxx
@@ -76,7 +76,7 @@ private:
::sal_Int32 mnRowSpan;
::sal_Int32 mnColSpan;
- Data() : mpProperties(0), mpOutlinerParaObject(0) {};
+ Data() : mpProperties(NULL), mpOutlinerParaObject(NULL), mfValue(0) {};
};
void setDataToCell( const Data& rData );
diff --git a/svx/source/xml/xmlexport.cxx b/svx/source/xml/xmlexport.cxx
index f7efb61e2d..e61e21ef17 100644
--- a/svx/source/xml/xmlexport.cxx
+++ b/svx/source/xml/xmlexport.cxx
@@ -139,7 +139,7 @@ sal_Bool SvxDrawingLayerExport( SdrModel* pModel, const uno::Reference<io::XOutp
}
}
}
- catch(uno::Exception e)
+ catch(uno::Exception const& e)
{
DBG_UNHANDLED_EXCEPTION();
bDocRet = sal_False;
diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx
index 6ac4cc03fb..14b8797556 100644
--- a/svx/source/xml/xmlxtexp.cxx
+++ b/svx/source/xml/xmlxtexp.cxx
@@ -368,7 +368,7 @@ sal_Bool SvxXMLXTableExportComponent::exportTable() throw()
GetDocHandler()->endDocument();
}
- catch( Exception e )
+ catch( Exception const& )
{
bRet = sal_False;
}