chart2/source/view/inc/VDataSeries.hxx | 2 +- chart2/source/view/main/VDataSeries.cxx | 18 ++++++++++++++++++ cui/source/customize/macropg.cxx | 15 ++++++++------- framework/source/services/substitutepathvars.cxx | 13 ++++++++++--- sc/inc/cellsuno.hxx | 9 ++++++--- sc/inc/optuno.hxx | 3 ++- sc/inc/styleuno.hxx | 19 +++++++++++++------ sc/source/ui/unoobj/cellsuno.cxx | 11 +++++++---- sc/source/ui/unoobj/optuno.cxx | 2 +- sc/source/ui/unoobj/styleuno.cxx | 14 ++++++++------ sc/source/ui/vba/vbarange.cxx | 2 +- sc/source/ui/vba/vbarange.hxx | 3 ++- sw/source/core/crsr/findattr.cxx | 10 +++++++--- sw/source/ui/utlui/content.cxx | 2 +- vcl/source/filter/sgfbram.cxx | 10 ++++++++++ vcl/source/filter/sgfbram.hxx | 2 ++ vcl/source/filter/sgvmain.cxx | 4 ++++ vcl/source/filter/sgvmain.hxx | 1 + vcl/source/window/window.cxx | 11 ++++++----- writerfilter/source/dmapper/GraphicImport.cxx | 1 + 20 files changed, 109 insertions(+), 43 deletions(-)
New commits: commit 7fe516a0ad42a2ec1f355b6ce45283d78fe210b4 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 14:06:49 2014 +0000 coverity#1169852 Uncaught exception Change-Id: I52cd87c045eda2a11f48b0a28109bc7032033124 diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index 766800d..53507d6 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -340,7 +340,8 @@ public: virtual void SAL_CALL setPropertiesToDefault( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, + std::exception); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyDefaults( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index e8489c9..8c2c60f 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1473,7 +1473,8 @@ void SAL_CALL ScStyleObj::setAllPropertiesToDefault() } void SAL_CALL ScStyleObj::setPropertiesToDefault( const uno::Sequence<OUString>& aPropertyNames ) - throw (beans::UnknownPropertyException, uno::RuntimeException) + throw (beans::UnknownPropertyException, uno::RuntimeException, + std::exception) { SolarMutexGuard aGuard; commit f4897446c0ae9b9060562755351a3811c835e345 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 14:04:50 2014 +0000 coverity#1169853 Uncaught exception Change-Id: I3f10fbc70e72f6788e8ecc6244cc89d0c6cfa07b diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index 85f3698..a90e2a6 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -1040,7 +1040,8 @@ protected: virtual const SfxItemPropertyMap& GetItemPropertyMap(); virtual void GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, ::com::sun::star::uno::Any& ) - throw(::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::RuntimeException, + std::exception); virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::lang::IllegalArgumentException, diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 7066610..eedda88 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -8508,7 +8508,8 @@ void ScTableSheetObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn void ScTableSheetObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, uno::Any& rAny ) - throw(uno::RuntimeException) + throw(uno::RuntimeException, + std::exception) { if ( pEntry ) { commit b39d5f1ebc9fd4b076d3ff1cb4c83fe07ef57329 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 14:02:46 2014 +0000 coverity#1169854 Uncaught exception Change-Id: Id119394ea892dc44ec7f4c4679d1e3cd64203946 diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index aaa139d..85f3698 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -1044,7 +1044,8 @@ protected: virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, + std::exception); public: ScTableSheetObj(ScDocShell* pDocSh, SCTAB nTab); diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 9bc0155..7066610 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -8183,7 +8183,8 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScTableSheetObj::getPropertySet } void ScTableSheetObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, const uno::Any& aValue ) - throw(lang::IllegalArgumentException, uno::RuntimeException) + throw(lang::IllegalArgumentException, uno::RuntimeException, + std::exception) { if ( pEntry ) { commit fcfde822617074ff87bc027773e6afe6ed75a3ab Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 13:42:24 2014 +0000 coverity#1169855 Uncaught exception Change-Id: Iaf1e60f90cea22453f374986348f086d593e70fd diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 95123e3..acd640b 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -4098,7 +4098,7 @@ ScVbaRange::setPageBreak( const uno::Any& _pagebreak) throw (uno::RuntimeExcepti } uno::Any SAL_CALL -ScVbaRange::getHeight() throw (uno::RuntimeException) +ScVbaRange::getHeight() throw (uno::RuntimeException, std::exception) { if ( m_Areas->getCount() > 1 ) { diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx index 87e4722..f5213d1 100644 --- a/sc/source/ui/vba/vbarange.hxx +++ b/sc/source/ui/vba/vbarange.hxx @@ -182,7 +182,8 @@ public: throw(css::uno::RuntimeException, std::exception); virtual void SAL_CALL setRowHeight( const css::uno::Any& _rowheight ) throw (css::uno::RuntimeException); virtual css::uno::Any SAL_CALL getWidth() throw (css::uno::RuntimeException); - virtual css::uno::Any SAL_CALL getHeight() throw (css::uno::RuntimeException); + virtual css::uno::Any SAL_CALL getHeight() + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Any SAL_CALL getTop() throw (css::uno::RuntimeException); virtual css::uno::Any SAL_CALL getLeft() throw (css::uno::RuntimeException); commit fdeba2a75325e664308404663937a07efcc78d5e Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 13:38:39 2014 +0000 coverity#1169857 Uncaught exception Change-Id: Iccd10f5a06bcf11fcf2d90f93fa9a9e414a2ec62 diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index d4c2993..766800d 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -171,7 +171,11 @@ public: virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) - 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); + 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); virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) @@ -257,7 +261,8 @@ public: ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, + std::exception); virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index adf7dd9..e8489c9 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1522,9 +1522,9 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScStyleObj::getPropertySetInfo( void SAL_CALL ScStyleObj::setPropertyValue( const OUString& aPropertyName, const uno::Any& aValue ) - throw(beans::UnknownPropertyException, beans::PropertyVetoException, - lang::IllegalArgumentException, lang::WrappedTargetException, - uno::RuntimeException) + throw(beans::UnknownPropertyException, beans::PropertyVetoException, + lang::IllegalArgumentException, lang::WrappedTargetException, + uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; commit fc701963c0367ce88a16a8c16fa7feb283a97189 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 13:25:11 2014 +0000 coverity#1169859 Uncaught exception Change-Id: I554d115742b8e854def3eca87ebf2976567c3fa1 diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index bf757ff..d4c2993 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -292,9 +292,10 @@ public: virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) throw (::com::sun::star::beans::PropertyVetoException, - ::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::lang::WrappedTargetException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::lang::IllegalArgumentException, + ::com::sun::star::lang::WrappedTargetException, + ::com::sun::star::uno::RuntimeException, + std::exception); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) throw (::com::sun::star::uno::RuntimeException); diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index d0e1c33..adf7dd9 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1358,8 +1358,9 @@ uno::Any SAL_CALL ScStyleObj::getPropertyDefault( const OUString& aPropertyName void SAL_CALL ScStyleObj::setPropertyValues( const uno::Sequence< OUString >& aPropertyNames, const uno::Sequence< uno::Any >& aValues ) - throw (beans::PropertyVetoException, lang::IllegalArgumentException, - lang::WrappedTargetException, uno::RuntimeException) +throw (beans::PropertyVetoException, lang::IllegalArgumentException, + lang::WrappedTargetException, uno::RuntimeException, + std::exception) { SolarMutexGuard aGuard; commit 51626168c4138514727181e726c186643665c0d8 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 13:20:13 2014 +0000 coverity#1169873 Uninitialized scalar field Change-Id: I3b1b6a1fcb5ffe0c4f1e2f2709c214cddef9582e diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx index 41d9c7b..7eec031 100644 --- a/writerfilter/source/dmapper/GraphicImport.cxx +++ b/writerfilter/source/dmapper/GraphicImport.cxx @@ -311,6 +311,7 @@ public: ,bVertFlip(false) ,bSizeProtected(false) ,bPositionProtected(false) + ,nShapeOptionType(0) ,m_rPositivePercentages(rPositivePercentages) {} commit 8cd787a4e721dd99f443ed6b5a54cf73693dadfe Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 13:18:31 2014 +0000 coverity#1169874 Uninitialized scalar field Change-Id: Ie81eb6730c0e7e3c1b58f43697cb51587c3caf5d diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx index 9ebd1a2..e7a48d5 100644 --- a/sw/source/core/crsr/findattr.cxx +++ b/sw/source/core/crsr/findattr.cxx @@ -219,11 +219,15 @@ public: SwAttrCheckArr::SwAttrCheckArr( const SfxItemSet& rSet, bool bFwd, bool bNoCollections ) - : aCmpSet( *rSet.GetPool(), RES_CHRATR_BEGIN, RES_TXTATR_END-1 ) + : nNdStt(0) + , nNdEnd(0) + , nFound(0) + , nStackCnt(0) + , aCmpSet( *rSet.GetPool(), RES_CHRATR_BEGIN, RES_TXTATR_END-1 ) + , bNoColls(bNoCollections) + , bForward(bFwd) { aCmpSet.Put( rSet, false ); - bNoColls = bNoCollections; - bForward = bFwd; // determine area of Fnd/Stack array (Min/Max) SfxItemIter aIter( aCmpSet ); commit 661acb5e6fca3a65cd355b5dc7ce6d56c84f7ad0 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 13:08:35 2014 +0000 coverity#1169875 Uninitialized pointer field Change-Id: I8c31ab748efedcfc88b80afc56bce1edf69084a2 diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 7ee6c70..f645d5c 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -718,6 +718,12 @@ CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, Window* pSour void Window::ImplInitWindowData( WindowType nType ) { + // We will eventually being removing the inheritance of OutputDevice from Window. + // It will be replaced with a composition relationship. A Window will use an OutputDevice, + // it will not *be* an OutputDevice + mpOutputDevice = (OutputDevice*)this; + + mpWindowImpl = new WindowImpl( nType ); meOutDevType = OUTDEV_WINDOW; @@ -732,11 +738,6 @@ void Window::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSyste { DBG_ASSERT( mpWindowImpl->mbFrame || pParent, "Window::Window(): pParent == NULL" ); - // We will eventually being removing the inheritance of OutputDevice from Window. - // It will be replaced with a composition relationship. A Window will use an OutputDevice, - // it will not *be* an OutputDevice - mpOutputDevice = (OutputDevice*)this; - ImplSVData* pSVData = ImplGetSVData(); Window* pRealParent = pParent; commit 9ff5689fe25362431f5bf4f2b25056e8899bee40 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 13:00:48 2014 +0000 coverity#1169878 Uninitialized pointer field Change-Id: I722689f54f7c12ab632104550c632aaa16afe65f diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index 9f0fe1d..44acf93 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -52,13 +52,14 @@ using namespace ::com::sun::star::uno; static OUString aVndSunStarUNO( "vnd.sun.star.UNO:" ); static OUString aVndSunStarScript( "vnd.sun.star.script:" ); -_SvxMacroTabPage_Impl::_SvxMacroTabPage_Impl( const SfxItemSet& rAttrSet ) : - pAssignPB( NULL ), - pAssignComponentPB( NULL ), - pDeletePB( NULL ), - pEventLB( NULL ), - bReadOnly( sal_False ), - bIDEDialogMode( sal_False ) +_SvxMacroTabPage_Impl::_SvxMacroTabPage_Impl( const SfxItemSet& rAttrSet ) + : pAssignFT(NULL) + , pAssignPB(NULL) + , pAssignComponentPB(NULL) + , pDeletePB(NULL) + , pEventLB(NULL) + , bReadOnly(false) + , bIDEDialogMode(false) { const SfxPoolItem* pItem; if ( SFX_ITEM_SET == rAttrSet.GetItemState( SID_ATTR_MACROITEM, sal_False, &pItem ) ) commit 06410bdf1f05db344a5b2ab9275575fed5bded53 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 12:58:05 2014 +0000 coverity#1169879 Uninitialized scalar field Change-Id: I9638bbda4d87e6d86ed1baa2f29331321f11d862 diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index b12331f..d651238 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -86,12 +86,19 @@ enum OperatingSystem struct SubstituteRule { - SubstituteRule() {} + SubstituteRule() + : aEnvType(ET_UNKNOWN) + {} + SubstituteRule( const OUString& aVarName, const OUString& aValue, const com::sun::star::uno::Any& aVal, - EnvironmentType aType ) : - aSubstVariable( aVarName ), aSubstValue( aValue ), aEnvValue( aVal ), aEnvType( aType ) {} + EnvironmentType aType ) + : aSubstVariable(aVarName) + , aSubstValue(aValue) + , aEnvValue(aVal) + , aEnvType(aType) + {} OUString aSubstVariable; OUString aSubstValue; commit 2ee427f90ec8261a95fc5fef5e27f8be0adda7cd Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 12:56:10 2014 +0000 coverity#1169880 Uninitialized pointer field Change-Id: I70a9381a77b3b782c52dbcbc0b48a0e5ea387c8b diff --git a/chart2/source/view/inc/VDataSeries.hxx b/chart2/source/view/inc/VDataSeries.hxx index ab48afe..c6e775f 100644 --- a/chart2/source/view/inc/VDataSeries.hxx +++ b/chart2/source/view/inc/VDataSeries.hxx @@ -146,7 +146,7 @@ public: void setRoleOfSequenceForDataLabelNumberFormatDetection( const OUString& rRole ); - //this is only tempohttps://www.google.de/search?q=minka+kelly&safe=off&tbm=isch&tbo=u&source=univ&sa=X&ei=x36_Uv6ZF9Kf7ga-rYGIAg&ved=0CK4BEIke&biw=1920&bih=1043#q=minka+kelly&safe=off&tbm=isch&tbs=isz:lrarily here for area chart: + //this is only temporarily here for area chart: ::com::sun::star::drawing::PolyPolygonShape3D m_aPolyPolygonShape3D; sal_Int32 m_nPolygonIndex; double m_fLogicMinX; diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx index 2ebe5f5..624e143 100644 --- a/chart2/source/view/main/VDataSeries.cxx +++ b/chart2/source/view/main/VDataSeries.cxx @@ -1062,6 +1062,24 @@ sal_Int32 VDataSeries::getMissingValueTreatment() const } VDataSeries::VDataSeries() + : m_nPolygonIndex(0) + , m_fLogicMinX(0) + , m_fLogicMaxX(0) + , m_fLogicZPos(0) + , m_nPointCount(0) + , m_fXMeanValue(0) + , m_fYMeanValue(0) + , m_eStackingDirection(chart2::StackingDirection_NO_STACKING) + , m_nAxisIndex(0) + , m_bConnectBars(false) + , m_bGroupBarsPerAxis(false) + , m_nStartingAngle(0) + , m_nGlobalSeriesIndex(0) + , m_nCurrentAttributedPoint(0) + , m_nMissingValueTreatment(0) + , m_bAllowPercentValueInDataLabel(false) + , mpOldSeries(NULL) + , mnPercent(0) { } commit 65af1f309883f4c706f0154b17149ac38f0760ef Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 12:44:57 2014 +0000 coverity#1169866 Uninitialized scalar variable Change-Id: I0259c798bfff5034059fd3ef6a0463e5fbce409b diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx index 94fd72a..fb028d7 100644 --- a/vcl/source/filter/sgfbram.cxx +++ b/vcl/source/filter/sgfbram.cxx @@ -57,6 +57,11 @@ bool SgfHeader::ChkMagic() sal_uInt32 SgfHeader::GetOffset() { return sal_uInt32(OfsLo)+0x00010000*sal_uInt32(OfsHi); } +SgfEntry::SgfEntry() +{ + memset( this, 0, sizeof( SgfEntry ) ); +} + SvStream& ReadSgfEntry(SvStream& rIStream, SgfEntry& rEntr) { rIStream.Read((char*)&rEntr.Typ,SgfEntrySize); diff --git a/vcl/source/filter/sgfbram.hxx b/vcl/source/filter/sgfbram.hxx index 183eddf..72f4cec 100644 --- a/vcl/source/filter/sgfbram.hxx +++ b/vcl/source/filter/sgfbram.hxx @@ -73,6 +73,7 @@ public: sal_uInt32 GetOffset(); friend SvStream& ReadSgfEntry(SvStream& rIStream, SgfEntry& rEntr); + SgfEntry(); }; #define SgfVectorSize 10 commit 562fdfc9b481d45bf8cbf55c7d693b38a3f12b8f Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 12:42:28 2014 +0000 coverity#1169868 Uninitialized scalar variable Change-Id: I65c2c8fcbf83d8a93a838873c412d70f7d9196ef diff --git a/vcl/source/filter/sgvmain.cxx b/vcl/source/filter/sgvmain.cxx index b90c601..28ef1fa 100644 --- a/vcl/source/filter/sgvmain.cxx +++ b/vcl/source/filter/sgvmain.cxx @@ -157,6 +157,10 @@ void DtHdOverSeek(SvStream& rInp) rInp.Seek(FPos); } +PageType::PageType() +{ + memset( this, 0, sizeof( PageType ) ); +} SvStream& ReadPageType(SvStream& rIStream, PageType& rPage) { diff --git a/vcl/source/filter/sgvmain.hxx b/vcl/source/filter/sgvmain.hxx index 3c58f12..e9272b3 100644 --- a/vcl/source/filter/sgvmain.hxx +++ b/vcl/source/filter/sgvmain.hxx @@ -67,6 +67,7 @@ public: sal_uInt8 LnAnzV; UCHAR PgName[32]; // page name friend SvStream& ReadPageType(SvStream& rIStream, PageType& rPage); + PageType(); }; enum ObjArtType {ObjStrk,ObjRect,ObjPoly,ObjCirc,ObjSpln, commit 6da0dc447cb2c5c3a6cd80298b4984ba36732b1e Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 12:39:13 2014 +0000 coverity#1169872 Uninitialized scalar variable Change-Id: I797e25c6cf23f3de6e812096574be8d4bce41338 diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx index c9ac388..94fd72a 100644 --- a/vcl/source/filter/sgfbram.cxx +++ b/vcl/source/filter/sgfbram.cxx @@ -27,6 +27,11 @@ #include "sgffilt.hxx" #include "sgfbram.hxx" +SgfHeader::SgfHeader() +{ + memset( this, 0, sizeof( SgfHeader ) ); +} + SvStream& ReadSgfHeader(SvStream& rIStream, SgfHeader& rHead) { rIStream.Read((char*)&rHead.Magic,SgfHeaderSize); diff --git a/vcl/source/filter/sgfbram.hxx b/vcl/source/filter/sgfbram.hxx index cd34217..183eddf 100644 --- a/vcl/source/filter/sgfbram.hxx +++ b/vcl/source/filter/sgfbram.hxx @@ -58,6 +58,7 @@ public: sal_uInt32 GetOffset(); friend SvStream& ReadSgfHeader(SvStream& rIStream, SgfHeader& rHead); bool ChkMagic(); + SgfHeader(); }; #define SgfEntrySize 22 commit 15ff1109d25c9d89f6fcba6c10ce1a02908d1480 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Feb 8 12:28:44 2014 +0000 fix debug=2 build Change-Id: I09048d8d92afa4761e5276f308361f6b7fd152b5 diff --git a/sw/source/ui/utlui/content.cxx b/sw/source/ui/utlui/content.cxx index efc49d6..f810c57 100644 --- a/sw/source/ui/utlui/content.cxx +++ b/sw/source/ui/utlui/content.cxx @@ -2809,7 +2809,7 @@ void SwContentTree::RequestHelp( const HelpEvent& rHEvt ) case CONTENT_TYPE_GRAPHIC: sEntry = ((SwGraphicContent*)pUserData)->GetLink(); #if OSL_DEBUG_LEVEL > 1 - sEntry += ' '; + sEntry += " "; sEntry += OUString::number( ((SwGraphicContent*)pUserData)->GetYPos()); #endif commit 3d78423eaee41474cfa99c651f3c96d407453180 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Feb 7 20:54:52 2014 +0000 coverity#1169862 Uncaught exception Change-Id: I13d12586b8f76b61e3b728858fb7228eb7be723e diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index fcae7ba..aaa139d 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -1286,7 +1286,8 @@ protected: virtual void SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, + std::exception); public: ScTableColumnObj(ScDocShell* pDocSh, SCCOL nCol, SCTAB nTab); diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 826b32d..9bc0155 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -8814,8 +8814,9 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScTableColumnObj::getPropertySe return aRef; } -void ScTableColumnObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEntry, const uno::Any& aValue ) - throw(lang::IllegalArgumentException, uno::RuntimeException) +void ScTableColumnObj::SetOnePropertyValue(const SfxItemPropertySimpleEntry* pEntry, const uno::Any& aValue) + throw(lang::IllegalArgumentException, uno::RuntimeException, + std::exception) { if ( pEntry ) { commit 2d3ddaef14122e19916852cf3add98646926eb9a Author: Caolán McNamara <caol...@redhat.com> Date: Fri Feb 7 20:52:45 2014 +0000 coverity#1169864 Uncaught exception Change-Id: I6fad82abf7d0ad4a85592e7011328faaaff14ce1 diff --git a/sc/inc/optuno.hxx b/sc/inc/optuno.hxx index 6da94a1..90a275d 100644 --- a/sc/inc/optuno.hxx +++ b/sc/inc/optuno.hxx @@ -72,7 +72,8 @@ public: ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, + std::exception); virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, diff --git a/sc/source/ui/unoobj/optuno.cxx b/sc/source/ui/unoobj/optuno.cxx index 18a05cf..77d4dac 100644 --- a/sc/source/ui/unoobj/optuno.cxx +++ b/sc/source/ui/unoobj/optuno.cxx @@ -195,7 +195,7 @@ void SAL_CALL ScDocOptionsObj::setPropertyValue( const OUString& aPropertyName, const uno::Any& aValue ) throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, - uno::RuntimeException) + uno::RuntimeException, std::exception) { SolarMutexGuard aGuard;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits