diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/calc.hxx | 4 | ||||
-rw-r--r-- | sw/inc/docfac.hxx | 2 | ||||
-rw-r--r-- | sw/inc/unotxdoc.hxx | 3 | ||||
-rw-r--r-- | sw/source/core/bastyp/calc.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/DocumentFieldsManager.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/layout/calcmove.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/basflt/docfact.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/edtwin.hxx | 3 |
8 files changed, 12 insertions, 9 deletions
diff --git a/sw/inc/calc.hxx b/sw/inc/calc.hxx index 94d2643a547f..56241deed94b 100644 --- a/sw/inc/calc.hxx +++ b/sw/inc/calc.hxx @@ -216,8 +216,8 @@ class SwCalc SwCalc& operator=( const SwCalc& ) = delete; public: - SwCalc( SwDoc& rD ); - ~SwCalc(); + SwCalc(SwDoc& rD); + ~SwCalc() COVERITY_NOEXCEPT_FALSE; SwSbxValue Calculate( const OUString &rStr ); OUString GetStrResult( const SwSbxValue& rValue ); diff --git a/sw/inc/docfac.hxx b/sw/inc/docfac.hxx index 4fa978e75963..01bf092f2ee8 100644 --- a/sw/inc/docfac.hxx +++ b/sw/inc/docfac.hxx @@ -30,7 +30,7 @@ protected: public: SwDocFac( SwDoc *pDoc = nullptr ); - ~SwDocFac(); + ~SwDocFac() COVERITY_NOEXCEPT_FALSE; /// Document is created after calling Read(...). SwDoc* GetDoc(); diff --git a/sw/inc/unotxdoc.hxx b/sw/inc/unotxdoc.hxx index 0636dbfd5007..6bb104a168ca 100644 --- a/sw/inc/unotxdoc.hxx +++ b/sw/inc/unotxdoc.hxx @@ -55,6 +55,7 @@ #include <com/sun/star/text/XFlatParagraphIteratorProvider.hpp> #include <com/sun/star/document/XDocumentLanguages.hpp> #include <com/sun/star/util/XCloneable.hpp> +#include <o3tl/deleter.hxx> #include <rtl/ref.hxx> #include <svx/fmdmod.hxx> #include <editeng/UnoForbiddenCharsTable.hxx> @@ -133,7 +134,7 @@ private: class Impl; ::sw::UnoImplPtr<Impl> m_pImpl; - std::deque<std::unique_ptr<UnoActionContext>> maActionArr; + std::deque<std::unique_ptr<UnoActionContext, o3tl::default_delete<UnoActionContext>>> maActionArr; const SfxItemPropertySet* pPropSet; diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx index 770dffbf47c8..a7edab8c1452 100644 --- a/sw/source/core/bastyp/calc.cxx +++ b/sw/source/core/bastyp/calc.cxx @@ -335,7 +335,7 @@ SwCalc::SwCalc( SwDoc& rD ) } // SwCalc::SwCalc -SwCalc::~SwCalc() +SwCalc::~SwCalc() COVERITY_NOEXCEPT_FALSE { if( m_pLocaleDataWrapper != m_aSysLocale.GetLocaleDataPtr() ) delete m_pLocaleDataWrapper; diff --git a/sw/source/core/doc/DocumentFieldsManager.cxx b/sw/source/core/doc/DocumentFieldsManager.cxx index 74d2c41b0fd4..d1e5f78af255 100644 --- a/sw/source/core/doc/DocumentFieldsManager.cxx +++ b/sw/source/core/doc/DocumentFieldsManager.cxx @@ -50,6 +50,7 @@ #include <usrfld.hxx> #include <ndindex.hxx> #include <pam.hxx> +#include <o3tl/deleter.hxx> #include <unotools/transliterationwrapper.hxx> #include <com/sun/star/uno/Any.hxx> @@ -670,7 +671,7 @@ void DocumentFieldsManager::UpdateTableFields( SfxPoolItem* pHt ) TBL_CALC != static_cast<SwTableFormulaUpdate*>(pHt)->m_eFlags )) return ; - std::unique_ptr<SwCalc> pCalc; + std::unique_ptr<SwCalc, o3tl::default_delete<SwCalc>> pCalc; if( pFieldType ) { diff --git a/sw/source/core/layout/calcmove.cxx b/sw/source/core/layout/calcmove.cxx index 38409de14e0d..9594b91ab536 100644 --- a/sw/source/core/layout/calcmove.cxx +++ b/sw/source/core/layout/calcmove.cxx @@ -1179,7 +1179,7 @@ void SwContentFrame::MakeAll(vcl::RenderContext* /*pRenderContext*/) PROTOCOL_ENTER( this, PROT::MakeAll, DbgAction::NONE, nullptr ) // takes care of the notification in the dtor - std::unique_ptr<SwContentNotify> pNotify(new SwContentNotify( this )); + std::unique_ptr<SwContentNotify, o3tl::default_delete<SwContentNotify>> pNotify(new SwContentNotify( this )); // as long as bMakePage is true, a new page can be created (exactly once) bool bMakePage = true; diff --git a/sw/source/filter/basflt/docfact.cxx b/sw/source/filter/basflt/docfact.cxx index a7269de0a9cb..d8c3272b9245 100644 --- a/sw/source/filter/basflt/docfact.cxx +++ b/sw/source/filter/basflt/docfact.cxx @@ -30,7 +30,7 @@ SwDocFac::SwDocFac( SwDoc *pDc ) } -SwDocFac::~SwDocFac() +SwDocFac::~SwDocFac() COVERITY_NOEXCEPT_FALSE { } diff --git a/sw/source/uibase/inc/edtwin.hxx b/sw/source/uibase/inc/edtwin.hxx index c2884540f352..bee952662082 100644 --- a/sw/source/uibase/inc/edtwin.hxx +++ b/sw/source/uibase/inc/edtwin.hxx @@ -19,6 +19,7 @@ #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_EDTWIN_HXX #define INCLUDED_SW_SOURCE_UIBASE_INC_EDTWIN_HXX +#include <o3tl/deleter.hxx> #include <sot/exchange.hxx> #include <svx/svdobj.hxx> #include <tools/link.hxx> @@ -90,7 +91,7 @@ class SwEditWin final : public vcl::Window, std::unique_ptr<SdrDropMarkerOverlay> m_pUserMarker; SdrObject *m_pUserMarkerObj; - std::unique_ptr<SwShadowCursor> m_pShadCursor; + std::unique_ptr<SwShadowCursor, o3tl::default_delete<SwShadowCursor>> m_pShadCursor; boost::optional<Point> m_xRowColumnSelectionStart; // save position where table row/column selection has been started SwView &m_rView; |