[Libreoffice-commits] core.git: 23 commits - editeng/source extensions/source forms/source include/comphelper oovbaapi/ooo sc/source svtools/source svx/source sw/inc sw/source tools/source ucb/source vbahelper/source vcl/generic
Caolán McNamara
caolanm at redhat.com
Wed Apr 23 01:40:37 PDT 2014
editeng/source/misc/txtrange.cxx | 20 ++++++++++++++++----
extensions/source/scanner/sanedlg.cxx | 9 +++++++--
forms/source/xforms/model.hxx | 6 +++---
include/comphelper/MasterPropertySet.hxx | 4 +++-
include/comphelper/propertysethelper.hxx | 2 +-
oovbaapi/ooo/vba/word/XDocument.idl | 2 +-
oovbaapi/ooo/vba/word/XOptions.idl | 2 +-
sc/source/filter/dif/difimp.cxx | 10 +++++++---
svtools/source/graphic/descriptor.cxx | 2 +-
svtools/source/graphic/descriptor.hxx | 2 +-
svx/source/unodraw/gluepts.cxx | 2 +-
sw/inc/unotext.hxx | 5 +++--
sw/source/core/uibase/dochdl/swdtflvr.cxx | 7 +++++--
sw/source/core/uibase/ribbar/conrect.cxx | 7 ++++---
sw/source/core/uibase/uno/SwXDocumentSettings.cxx | 2 +-
sw/source/core/uibase/uno/SwXDocumentSettings.hxx | 4 +++-
sw/source/core/unocore/unotext.cxx | 3 ++-
sw/source/filter/xml/xmltbli.cxx | 1 +
sw/source/ui/vba/vbadocument.cxx | 3 ++-
sw/source/ui/vba/vbadocument.hxx | 3 ++-
sw/source/ui/vba/vbaoptions.cxx | 3 ++-
sw/source/ui/vba/vbaoptions.hxx | 3 ++-
sw/source/ui/vba/vbapanes.cxx | 2 +-
tools/source/generic/bigint.cxx | 4 ++++
ucb/source/ucp/file/filrow.cxx | 1 +
vbahelper/source/msforms/vbauserform.cxx | 2 +-
vbahelper/source/msforms/vbauserform.hxx | 2 +-
vcl/generic/glyphs/gcach_rbmp.cxx | 11 +++++++++--
vcl/generic/print/common_gfx.cxx | 1 +
29 files changed, 87 insertions(+), 38 deletions(-)
New commits:
commit 206e224fa78795f8e8f9a6a0362dbc973ec81386
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:27:29 2014 +0100
coverity#708023 Uninitialized scalar field
Change-Id: Ia78fdf5ddc075cf529e3fad8c910f4c29bc8eed4
diff --git a/sc/source/filter/dif/difimp.cxx b/sc/source/filter/dif/difimp.cxx
index e319750..e759778 100644
--- a/sc/source/filter/dif/difimp.cxx
+++ b/sc/source/filter/dif/difimp.cxx
@@ -233,10 +233,14 @@ FltError ScFormatFilterPluginImpl::ScImportDif( SvStream& rIn, ScDocument* pDoc,
}
-DifParser::DifParser( SvStream& rNewIn, const sal_uInt32 nOption, ScDocument& rDoc, rtl_TextEncoding e ) :
- rIn( rNewIn )
+DifParser::DifParser( SvStream& rNewIn, const sal_uInt32 nOption, ScDocument& rDoc, rtl_TextEncoding e )
+ : fVal(0.0)
+ , nVector(0)
+ , nVal(0)
+ , nNumFormat(0)
+ , eCharSet(e)
+ , rIn(rNewIn)
{
- eCharSet = e;
if ( rIn.GetStreamCharSet() != eCharSet )
{
OSL_FAIL( "CharSet passed overrides and modifies StreamCharSet" );
commit 78b17c321b3c9faa06ea8a5ac37feee7f4c8e729
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:25:35 2014 +0100
coverity#708516 Uninitialized scalar field
Change-Id: I54e09013a4ab375528f97f191b19f4b3c016598b
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index 3bcbd7a..ce36c63 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -182,6 +182,7 @@ public:
nRowSpan( nRSpan ),
nColSpan( nCSpan ),
bProtected( sal_False ),
+ bHasValue( sal_False ),
mbCovered( sal_False )
, m_bHasStringValue(false)
{}
commit e7e3e27f1d88671e9c9697ad2dbc61883b617223
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:24:40 2014 +0100
coverity#708519 Uninitialized scalar field
Change-Id: Ib412af73771dd49967a4ef638b2b0e3b4df8b86d
diff --git a/sw/source/core/uibase/dochdl/swdtflvr.cxx b/sw/source/core/uibase/dochdl/swdtflvr.cxx
index c8f1cd5..0a99bc2 100644
--- a/sw/source/core/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/core/uibase/dochdl/swdtflvr.cxx
@@ -3579,8 +3579,11 @@ SwTransferable* SwTransferable::GetSwTransferable( const TransferableDataHelper&
}
SwTrnsfrDdeLink::SwTrnsfrDdeLink( SwTransferable& rTrans, SwWrtShell& rSh )
- : rTrnsfr( rTrans ), pDocShell( 0 ),
- bDelBookmrk( sal_False ), bInDisconnect( sal_False )
+ : rTrnsfr(rTrans)
+ , pDocShell(0)
+ , nOldTimeOut(0)
+ , bDelBookmrk(false)
+ , bInDisconnect(false)
{
// we only end up here with table- or text selection
if( nsSelectionType::SEL_TBL_CELLS & rSh.GetSelectionType() )
commit a774c46673f6856e5d0c799b630954cf11de0935
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:23:08 2014 +0100
coverity#708522 Uninitialized scalar field
Change-Id: I1396d5f2f042e5500b61dc578a8d5089374fa8f8
diff --git a/sw/source/core/uibase/ribbar/conrect.cxx b/sw/source/core/uibase/ribbar/conrect.cxx
index 9b7aa47..daa266a 100644
--- a/sw/source/core/uibase/ribbar/conrect.cxx
+++ b/sw/source/core/uibase/ribbar/conrect.cxx
@@ -38,10 +38,11 @@
ConstRectangle::ConstRectangle( SwWrtShell* pWrtShell, SwEditWin* pEditWin,
SwView* pSwView )
- : SwDrawBase( pWrtShell, pEditWin, pSwView ),
- bMarquee(false),
+ : SwDrawBase( pWrtShell, pEditWin, pSwView )
+ , bMarquee(false)
+ , bCapVertical(false)
// #93382#
- mbVertical(false)
+ , mbVertical(false)
{
}
commit 055eb8ed0c946bfb2fb68762eab5a52917f1e3ae
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:21:43 2014 +0100
coverity#708561 Uninitialized scalar field
Change-Id: I5143af5be06312a131751d742d17be619e042d11
diff --git a/ucb/source/ucp/file/filrow.cxx b/ucb/source/ucp/file/filrow.cxx
index 9569a23..e779c60 100644
--- a/ucb/source/ucp/file/filrow.cxx
+++ b/ucb/source/ucp/file/filrow.cxx
@@ -77,6 +77,7 @@ sal_Bool convert( shell* pShell,
XRow_impl::XRow_impl( shell* pMyShell,const uno::Sequence< uno::Any >& seq )
: m_aValueMap( seq ),
+ m_nWasNull(false),
m_pMyShell( pMyShell ),
m_xProvider( pMyShell->m_pProvider ),
m_xTypeConverter( 0 )
commit 9f06e4bc3a56806061f759770f758ad3c7ddf09c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:20:28 2014 +0100
coverity#708545 Uninitialized scalar field
Change-Id: I07bbda38cc030212e27505b92ccb449ba0c5c76b
diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx
index e16b42c..07f1806 100644
--- a/tools/source/generic/bigint.cxx
+++ b/tools/source/generic/bigint.cxx
@@ -556,6 +556,7 @@ BigInt::BigInt( double nValue )
}
BigInt::BigInt( sal_uInt32 nValue )
+ : nVal(0)
{
bIsSet = true;
if ( nValue & 0x80000000UL )
commit 03ba74098044e5573e56c73f2345b4bcdddb1a39
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:20:00 2014 +0100
coverity#708544 Uninitialized scalar field
Change-Id: I51c3dba9970049acbef4523de3cc968b2df1b408
diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx
index 280a62a..e16b42c 100644
--- a/tools/source/generic/bigint.cxx
+++ b/tools/source/generic/bigint.cxx
@@ -513,6 +513,7 @@ BigInt::BigInt( const OUString& rString )
}
BigInt::BigInt( double nValue )
+ : nVal(0)
{
bIsSet = true;
commit 8ff3dbb1c44467d9b71d22b78efa71f253f93cfd
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:19:25 2014 +0100
coverity#708543 Uninitialized scalar field
Change-Id: I7099e15a6526c4fe01a220422bb91d9fd70abc51
diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx
index 26117ce..280a62a 100644
--- a/tools/source/generic/bigint.cxx
+++ b/tools/source/generic/bigint.cxx
@@ -472,6 +472,8 @@ bool BigInt::ABS_IsLess( const BigInt& rB ) const
}
BigInt::BigInt( const BigInt& rBigInt )
+ : nLen(0)
+ , bIsNeg(false)
{
if ( rBigInt.bIsBig )
memcpy( (void*)this, (const void*)&rBigInt, sizeof( BigInt ) );
commit f2ac8d61165cf2a2e0a0369af553ff047e6cee24
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:18:06 2014 +0100
coverity#708636 Uninitialized scalar field
Change-Id: I7b80da16399a7f8f6c6b1b4f78d1e2a4ddc6f4b5
diff --git a/vcl/generic/glyphs/gcach_rbmp.cxx b/vcl/generic/glyphs/gcach_rbmp.cxx
index 23d3ed9..37f079c 100644
--- a/vcl/generic/glyphs/gcach_rbmp.cxx
+++ b/vcl/generic/glyphs/gcach_rbmp.cxx
@@ -21,8 +21,15 @@
#include <string.h>
RawBitmap::RawBitmap()
-: mnAllocated(0)
-{}
+ : mnAllocated(0)
+ , mnWidth(0)
+ , mnHeight(0)
+ , mnScanlineSize(0)
+ , mnBitCount(0)
+ , mnXOffset(0)
+ , mnYOffset(0)
+{
+}
RawBitmap::~RawBitmap()
{}
commit f54ddcc680b551ba8629a768cc6569ee3d012ca7
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:16:15 2014 +0100
coverity#708671 Uninitialized scalar field
Change-Id: I7bfd15318b80623f225a954bafd56d1d5b3ae3e1
diff --git a/vcl/generic/print/common_gfx.cxx b/vcl/generic/print/common_gfx.cxx
index c5cc108..7170859 100644
--- a/vcl/generic/print/common_gfx.cxx
+++ b/vcl/generic/print/common_gfx.cxx
@@ -39,6 +39,7 @@ using namespace psp ;
static const sal_Int32 nMaxTextColumn = 80;
GraphicsStatus::GraphicsStatus() :
+ maEncoding(RTL_TEXTENCODING_DONTKNOW),
mbArtItalic( false ),
mbArtBold( false ),
mnTextHeight( 0 ),
commit af67b1e670e95582861d6f6537222a35cb07cab5
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:14:30 2014 +0100
coverity#738625 Uninitialized scalar field
Change-Id: I00119c518008570af19db0be8112807ef683050b
diff --git a/editeng/source/misc/txtrange.cxx b/editeng/source/misc/txtrange.cxx
index 6a201b6..2a4b7cd 100644
--- a/editeng/source/misc/txtrange.cxx
+++ b/editeng/source/misc/txtrange.cxx
@@ -146,10 +146,22 @@ public:
SvxBoundArgs::SvxBoundArgs( TextRanger* pRanger, LongDqPtr pLong,
const Range& rRange )
- : pLongArr( pLong ), pTextRanger( pRanger ),
- nTop( rRange.Min() ), nBottom( rRange.Max() ),
- bInner( pRanger->IsInner() ), bMultiple( bInner || !pRanger->IsSimple() ),
- bConcat( false ), bRotate( pRanger->IsVertical() )
+ : pLongArr(pLong)
+ , pTextRanger(pRanger)
+ , nMin(0)
+ , nMax(0)
+ , nTop(rRange.Min())
+ , nBottom(rRange.Max())
+ , nCut(0)
+ , nLast(0)
+ , nNext(0)
+ , nAct(0)
+ , nFirst(0)
+ , bClosed(false)
+ , bInner(pRanger->IsInner())
+ , bMultiple(bInner || !pRanger->IsSimple())
+ , bConcat(false)
+ , bRotate(pRanger->IsVertical())
{
if( bRotate )
{
commit a86b6727d302c9b3336f09674cec9dbdb7e93183
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:11:37 2014 +0100
coverity#738627 Uninitialized scalar field
Change-Id: Id52cf54dea1b51ab3884618f90a01324b7451f76
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index 01f07fe..49608c4 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -42,6 +42,7 @@ SaneDlg::SaneDlg( Window* pParent, Sane& rSane, bool bScanEnabled ) :
mbIsDragging( sal_False ),
mbScanEnabled( bScanEnabled ),
mbDragDrawn( sal_False ),
+ meDragDirection( TopLeft ),
maMapMode( MAP_APPFONT ),
maOKButton( this, SaneResId( RID_SCAN_OK ) ),
maCancelButton( this, SaneResId( RID_SCAN_CANCEL ) ),
@@ -76,8 +77,12 @@ SaneDlg::SaneDlg( Window* pParent, Sane& rSane, bool bScanEnabled ) :
maStringEdit( this, SaneResId( RID_SCAN_STRING_OPTION_EDT ) ),
maNumericEdit( this, SaneResId( RID_SCAN_NUMERIC_OPTION_EDT ) ),
maOptionBox( this, SaneResId( RID_SCAN_OPTION_BOX ) ),
- mpRange( 0 ),
- doScan( false )
+ mnCurrentOption(0),
+ mnCurrentElement(0),
+ mpRange(0),
+ mfMin(0.0),
+ mfMax(0.0),
+ doScan(false)
{
if( Sane::IsSane() )
{
commit 942f6a65e1151612973c367c203d44066c8ed287
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:06:47 2014 +0100
coverity#989723 Uncaught exception
Change-Id: Iedfbc85972326c10f71f50816d7d806fd4b8bffd
diff --git a/forms/source/xforms/model.hxx b/forms/source/xforms/model.hxx
index 6fe8a65..56ce371 100644
--- a/forms/source/xforms/model.hxx
+++ b/forms/source/xforms/model.hxx
@@ -291,7 +291,7 @@ public:
{ PropertySetBase::addPropertyChangeListener(p1, p2); }
virtual void SAL_CALL removePropertyChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2)
- throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE
+ throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
{ PropertySetBase::removePropertyChangeListener(p1, p2); }
virtual void SAL_CALL addVetoableChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2)
commit 064488221b546063d4567b83ca19dc904b31ab05
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:06:15 2014 +0100
coverity#989722 Uncaught exception
Change-Id: Id242624865fa892c4d45cb04dfaa66d74bb6d5d1
diff --git a/forms/source/xforms/model.hxx b/forms/source/xforms/model.hxx
index e3689a2..6fe8a65 100644
--- a/forms/source/xforms/model.hxx
+++ b/forms/source/xforms/model.hxx
@@ -295,7 +295,7 @@ public:
{ PropertySetBase::removePropertyChangeListener(p1, p2); }
virtual void SAL_CALL addVetoableChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2)
- throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE
+ throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
{ PropertySetBase::addVetoableChangeListener(p1, p2); }
virtual void SAL_CALL removeVetoableChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XVetoableChangeListener>& p2)
commit bccc1f2078e19599c30087e57c89be3ff4bfa17e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:05:24 2014 +0100
coverity#989721 Uncaught exception
Change-Id: I42483ab32538cd26f5c26436dd3740724f49bbe6
diff --git a/forms/source/xforms/model.hxx b/forms/source/xforms/model.hxx
index 35057e9..e3689a2 100644
--- a/forms/source/xforms/model.hxx
+++ b/forms/source/xforms/model.hxx
@@ -287,7 +287,7 @@ public:
{ return PropertySetBase::getPropertyValue(p); }
virtual void SAL_CALL addPropertyChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2)
- throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE
+ throw (css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
{ PropertySetBase::addPropertyChangeListener(p1, p2); }
virtual void SAL_CALL removePropertyChangeListener(const OUString& p1, const css::uno::Reference<css::beans::XPropertyChangeListener>& p2)
commit c27fb22432d5f817ceef7af2936bb276a305a158
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 09:01:40 2014 +0100
coverity#707461 Uncaught exception
Change-Id: I73d469744605e788c3b5710b38ef846a444cff68
diff --git a/vbahelper/source/msforms/vbauserform.cxx b/vbahelper/source/msforms/vbauserform.cxx
index 1fbb096..82b4ec4 100644
--- a/vbahelper/source/msforms/vbauserform.cxx
+++ b/vbahelper/source/msforms/vbauserform.cxx
@@ -43,7 +43,7 @@ using namespace ::com::sun::star;
// the models in ControlModels can be accessed by name
// also the XDialog is a XControl ( to access the model above
-ScVbaUserForm::ScVbaUserForm( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& xContext ) throw ( lang::IllegalArgumentException ) : ScVbaUserForm_BASE( getXSomethingFromArgs< XHelperInterface >( aArgs, 0 ), xContext, getXSomethingFromArgs< uno::XInterface >( aArgs, 1 ), getXSomethingFromArgs< frame::XModel >( aArgs, 2 ), static_cast< ooo::vba::AbstractGeometryAttributes* >(0) ), mbDispose( true )
+ScVbaUserForm::ScVbaUserForm( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& xContext ) throw ( lang::IllegalArgumentException, uno::RuntimeException ) : ScVbaUserForm_BASE( getXSomethingFromArgs< XHelperInterface >( aArgs, 0 ), xContext, getXSomethingFromArgs< uno::XInterface >( aArgs, 1 ), getXSomethingFromArgs< frame::XModel >( aArgs, 2 ), static_cast< ooo::vba::AbstractGeometryAttributes* >(0) ), mbDispose( true )
{
m_xDialog.set( m_xControl, uno::UNO_QUERY_THROW );
uno::Reference< awt::XControl > xControl( m_xDialog, uno::UNO_QUERY_THROW );
diff --git a/vbahelper/source/msforms/vbauserform.hxx b/vbahelper/source/msforms/vbauserform.hxx
index 2684f8e..52bf4d9 100644
--- a/vbahelper/source/msforms/vbauserform.hxx
+++ b/vbahelper/source/msforms/vbauserform.hxx
@@ -39,7 +39,7 @@ private:
OUString m_sLibName;
protected:
public:
- ScVbaUserForm( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext ) throw ( css::lang::IllegalArgumentException );
+ ScVbaUserForm( css::uno::Sequence< css::uno::Any > const& aArgs, css::uno::Reference< css::uno::XComponentContext >const& xContext ) throw ( css::lang::IllegalArgumentException, css::uno::RuntimeException );
virtual ~ScVbaUserForm();
static css::uno::Reference< css::awt::XControl > nestedSearch( const OUString& aPropertyName, css::uno::Reference< css::awt::XControlContainer >& xContainer );
// XUserForm
commit 18891c5d7d1a8039241bc07d26538faf524fad72
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 08:58:18 2014 +0100
coverity#707380 Uncaught exception
Change-Id: I630323bb7b371925541f466563562378c339be6e
diff --git a/sw/source/ui/vba/vbapanes.cxx b/sw/source/ui/vba/vbapanes.cxx
index 338fe99..6fdf39d 100644
--- a/sw/source/ui/vba/vbapanes.cxx
+++ b/sw/source/ui/vba/vbapanes.cxx
@@ -43,7 +43,7 @@ public:
virtual uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception) SAL_OVERRIDE
{
if( Index != 1 )
- throw container::NoSuchElementException();
+ throw lang::IndexOutOfBoundsException();
return uno::makeAny( uno::Reference< word::XPane >( new SwVbaPane( mxParent, mxContext, mxModel ) ) );
}
virtual uno::Type SAL_CALL getElementType( ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE
commit caa5a3ae55965290b0122e73191de691acf23b3f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 08:57:13 2014 +0100
coverity#707379 Uncaught exception
Change-Id: Icaf92098dd7c9b9b6094212d62f5209c63d823d8
diff --git a/oovbaapi/ooo/vba/word/XOptions.idl b/oovbaapi/ooo/vba/word/XOptions.idl
index 158fc65..497f778 100644
--- a/oovbaapi/ooo/vba/word/XOptions.idl
+++ b/oovbaapi/ooo/vba/word/XOptions.idl
@@ -42,7 +42,7 @@ interface XOptions
[attribute] boolean AutoFormatApplyLists;
[attribute] boolean AutoFormatApplyBulletedLists;
- any DefaultFilePath( [in] long Path );
+ any DefaultFilePath( [in] long Path ) raises (com::sun::star::script::BasicErrorException);
};
}; }; };
diff --git a/sw/source/ui/vba/vbaoptions.cxx b/sw/source/ui/vba/vbaoptions.cxx
index a1e8650..a2d4591 100644
--- a/sw/source/ui/vba/vbaoptions.cxx
+++ b/sw/source/ui/vba/vbaoptions.cxx
@@ -39,7 +39,8 @@ SwVbaOptions::~SwVbaOptions()
}
uno::Any SAL_CALL
-SwVbaOptions::DefaultFilePath( sal_Int32 _path ) throw ( uno::RuntimeException, std::exception )
+SwVbaOptions::DefaultFilePath( sal_Int32 _path )
+ throw (css::script::BasicErrorException, uno::RuntimeException, std::exception)
{
switch( _path )
{
diff --git a/sw/source/ui/vba/vbaoptions.hxx b/sw/source/ui/vba/vbaoptions.hxx
index 77b9780..a47ad6d 100644
--- a/sw/source/ui/vba/vbaoptions.hxx
+++ b/sw/source/ui/vba/vbaoptions.hxx
@@ -65,7 +65,8 @@ public:
virtual void SAL_CALL setAutoFormatApplyBulletedLists( sal_Bool _autoformatapplybulletedlists ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
// Methods
- virtual css::uno::Any SAL_CALL DefaultFilePath( sal_Int32 _path ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
+ virtual css::uno::Any SAL_CALL DefaultFilePath( sal_Int32 _path )
+ throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
//PropListener
virtual void setValueEvent( const css::uno::Any& value ) SAL_OVERRIDE;
commit 7062961299eab7b2ba2444871a3faf09265d7662
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 08:54:37 2014 +0100
coverity#707371 Uncaught exception
Change-Id: I5b1de7ec2060aa4083a07c2ce250b47d798155f7
diff --git a/oovbaapi/ooo/vba/word/XDocument.idl b/oovbaapi/ooo/vba/word/XDocument.idl
index 6d883c1..dd2751e 100644
--- a/oovbaapi/ooo/vba/word/XDocument.idl
+++ b/oovbaapi/ooo/vba/word/XDocument.idl
@@ -36,7 +36,7 @@ interface XDocument : com::sun::star::script::XInvocation
[attribute] long HyphenationZone;
[attribute] long ConsecutiveHyphensLimit;
- XRange Range( [in] any Start, [in] any End );
+ XRange Range( [in] any Start, [in] any End ) raises (com::sun::star::script::BasicErrorException);
any BuiltInDocumentProperties( [in] any Index );
any CustomDocumentProperties( [in] any Index );
any Bookmarks( [in] any Index );
diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx
index 4ae4405..75d0aa6 100644
--- a/sw/source/ui/vba/vbadocument.cxx
+++ b/sw/source/ui/vba/vbadocument.cxx
@@ -81,7 +81,8 @@ SwVbaDocument::getContent() throw ( uno::RuntimeException, std::exception )
}
uno::Reference< word::XRange > SAL_CALL
-SwVbaDocument::Range( const uno::Any& rStart, const uno::Any& rEnd ) throw ( uno::RuntimeException, std::exception )
+SwVbaDocument::Range( const uno::Any& rStart, const uno::Any& rEnd )
+ throw (css::script::BasicErrorException, uno::RuntimeException, std::exception)
{
if( !rStart.hasValue() && !rEnd.hasValue() )
return getContent();
diff --git a/sw/source/ui/vba/vbadocument.hxx b/sw/source/ui/vba/vbadocument.hxx
index 0c9b5b0..e27b377 100644
--- a/sw/source/ui/vba/vbadocument.hxx
+++ b/sw/source/ui/vba/vbadocument.hxx
@@ -42,7 +42,8 @@ public:
// XDocument
virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL getContent() throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL Range( const css::uno::Any& rStart, const css::uno::Any& rEnd ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
+ virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL Range( const css::uno::Any& rStart, const css::uno::Any& rEnd )
+ throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL BuiltInDocumentProperties( const css::uno::Any& index ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL CustomDocumentProperties( const css::uno::Any& index ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL Bookmarks( const css::uno::Any& rIndex ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
commit 0bab690a4ad883e0872601bc4965bb9c0668fefb
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 08:51:19 2014 +0100
coverity#707317 Uncaught exception
Change-Id: I8ff4820f03311cb059da5e515d31d08239ac732d
diff --git a/include/comphelper/MasterPropertySet.hxx b/include/comphelper/MasterPropertySet.hxx
index 0444a6d..f0d8e0c 100644
--- a/include/comphelper/MasterPropertySet.hxx
+++ b/include/comphelper/MasterPropertySet.hxx
@@ -69,7 +69,9 @@ namespace comphelper
virtual void _preSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
- throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
+ throw (css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
+ css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) = 0;
virtual void _postSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
diff --git a/sw/source/core/uibase/uno/SwXDocumentSettings.cxx b/sw/source/core/uibase/uno/SwXDocumentSettings.cxx
index 0f4a840..ad30b94 100644
--- a/sw/source/core/uibase/uno/SwXDocumentSettings.cxx
+++ b/sw/source/core/uibase/uno/SwXDocumentSettings.cxx
@@ -302,7 +302,7 @@ void SwXDocumentSettings::_preSetValues ()
}
void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, const uno::Any &rValue )
- throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException )
+ throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException, std::exception)
{
if (rInfo.mnAttributes & PropertyAttribute::READONLY)
throw PropertyVetoException ("Property is read-only: " + rInfo.maName, static_cast < cppu::OWeakObject * > ( 0 ) );
diff --git a/sw/source/core/uibase/uno/SwXDocumentSettings.hxx b/sw/source/core/uibase/uno/SwXDocumentSettings.hxx
index c153f2e..181f553 100644
--- a/sw/source/core/uibase/uno/SwXDocumentSettings.hxx
+++ b/sw/source/core/uibase/uno/SwXDocumentSettings.hxx
@@ -52,7 +52,9 @@ protected:
virtual void _preSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE;
virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
- throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE;
+ throw (css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
+ css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
+ css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void _postSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE;
commit 06bd4e49ead2b7b195bfb1bd6ddccc29f7e6628b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 08:46:41 2014 +0100
coverity#707312 Uncaught exception
Change-Id: I6fdd99892bda502f7cfab2acd53120834dd390c6
diff --git a/sw/inc/unotext.hxx b/sw/inc/unotext.hxx
index cfb25c2..2b60060 100644
--- a/sw/inc/unotext.hxx
+++ b/sw/inc/unotext.hxx
@@ -277,8 +277,9 @@ public:
::com::sun::star::text::XTextRange >& xEnd,
const ::com::sun::star::uno::Sequence<
::com::sun::star::beans::PropertyValue >& xFrameProperties)
- throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ throw (css::lang::IllegalArgumentException,
+ css::beans::UnknownPropertyException,
+ css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::com::sun::star::uno::Reference<
::com::sun::star::text::XTextTable > SAL_CALL
convertToTable(
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index 8bb4612..8b75251 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -1528,7 +1528,8 @@ SwXText::convertToTextFrame(
const uno::Reference< text::XTextRange >& xStart,
const uno::Reference< text::XTextRange >& xEnd,
const uno::Sequence< beans::PropertyValue >& rFrameProperties)
-throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception)
+ throw (lang::IllegalArgumentException, beans::UnknownPropertyException,
+ uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
commit af705c172ef3fe18238489cffe0187ffff46a70e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 08:41:43 2014 +0100
coverity#707237 Uncaught exception
Change-Id: Ic07c81ce1e7e85bf9579550be01c16c1a41525f0
diff --git a/svx/source/unodraw/gluepts.cxx b/svx/source/unodraw/gluepts.cxx
index a03385f..0e38b86 100644
--- a/svx/source/unodraw/gluepts.cxx
+++ b/svx/source/unodraw/gluepts.cxx
@@ -343,7 +343,7 @@ uno::Any SAL_CALL SvxUnoGluePointAccess::getByIdentifier( sal_Int32 Identifier )
}
}
- throw lang::IndexOutOfBoundsException();
+ throw container::NoSuchElementException();
}
uno::Sequence< sal_Int32 > SAL_CALL SvxUnoGluePointAccess::getIdentifiers() throw (uno::RuntimeException, std::exception)
commit 3a374a50a2af3c11398d4de1b1a1e4a4eaf20fd3
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Apr 23 08:38:06 2014 +0100
coverity#707218 Uncaught exception
Change-Id: Ia7ed41a0d0bfa24a64f6d140922c095de5dd9c0c
diff --git a/include/comphelper/propertysethelper.hxx b/include/comphelper/propertysethelper.hxx
index 10be5a9..37a29ae 100644
--- a/include/comphelper/propertysethelper.hxx
+++ b/include/comphelper/propertysethelper.hxx
@@ -47,7 +47,7 @@ private:
protected:
virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const ::com::sun::star::uno::Any* pValues ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException ) = 0;
- virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException ) = 0;
+ virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) = 0;
virtual void _getPropertyStates( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::beans::PropertyState* pStates ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException );
virtual void _setPropertyToDefault( const comphelper::PropertyMapEntry* pEntry ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException );
diff --git a/svtools/source/graphic/descriptor.cxx b/svtools/source/graphic/descriptor.cxx
index e094783..799902c 100644
--- a/svtools/source/graphic/descriptor.cxx
+++ b/svtools/source/graphic/descriptor.cxx
@@ -324,7 +324,7 @@ void GraphicDescriptor::_setPropertyValues( const comphelper::PropertyMapEntry**
void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, uno::Any* pValues )
- throw( beans::UnknownPropertyException, lang::WrappedTargetException )
+ throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
diff --git a/svtools/source/graphic/descriptor.hxx b/svtools/source/graphic/descriptor.hxx
index c6c22d0..e43464c 100644
--- a/svtools/source/graphic/descriptor.hxx
+++ b/svtools/source/graphic/descriptor.hxx
@@ -98,7 +98,7 @@ protected:
// PropertySetHelper
virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const ::com::sun::star::uno::Any* pValues ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE;
- virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException ) SAL_OVERRIDE;
+ virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue ) throw (css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
private:
More information about the Libreoffice-commits
mailing list