summaryrefslogtreecommitdiff
path: root/svx/source
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
commit38ed65449b29300d671cb26b208df933ad053171 (patch)
tree9e595d1ad4bd2e7eafb9932d86577418090e0538 /svx/source
parent5f7b8cf83751babb0cef560fe6442f0ace984317 (diff)
cppcheck cleaning
Diffstat (limited to 'svx/source')
-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 ae3e020e8d41..ac8fa626df1a 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 372e1f3da5e2..844cd7f3d239 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 75f681832208..ddcf5a445926 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 dd4ab47a0802..18c045e32b27 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 1aa14d435f0c..a3619a9d7db9 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 76355a1282bc..dc71a4ee365c 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 1765f0b81892..b72c22ab36a5 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 392f948cf957..d8da6cf07006 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 9f053a57a405..48303c002e56 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 45c07ee5decc..d24f37d609ec 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;
}