diff options
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/index.hxx | 4 | ||||
-rw-r--r-- | sw/inc/pam.hxx | 4 | ||||
-rw-r--r-- | sw/inc/ring.hxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/inc/index.hxx b/sw/inc/index.hxx index fecfa983b6b9..84320219cd07 100644 --- a/sw/inc/index.hxx +++ b/sw/inc/index.hxx @@ -34,7 +34,7 @@ class IMark; } /// Marks a character position inside a document model node. -class SW_DLLPUBLIC SwIndex +class SAL_WARN_UNUSED SW_DLLPUBLIC SwIndex { private: friend class SwIndexReg; @@ -107,7 +107,7 @@ public: SW_DLLPUBLIC std::ostream& operator <<(std::ostream& s, const SwIndex& index); -class SwIndexReg +class SAL_WARN_UNUSED SwIndexReg { friend class SwIndex; friend bool sw_PosOk(const SwPosition & aPos); diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index 2fe0e6acb310..380cc878ed72 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -46,7 +46,7 @@ namespace utl { } /// Marks a position in the document model. -struct SW_DLLPUBLIC SwPosition +struct SAL_WARN_UNUSED SW_DLLPUBLIC SwPosition { SwNodeIndex nNode; SwIndex nContent; @@ -147,7 +147,7 @@ SW_DLLPUBLIC bool GoInContentSkipHidden( SwPaM&, SwMoveFnCollection const &); SW_DLLPUBLIC bool GoInContentCellsSkipHidden( SwPaM&, SwMoveFnCollection const &); /// PaM is Point and Mark: a selection of the document model. -class SW_DLLPUBLIC SwPaM : public sw::Ring<SwPaM> +class SAL_WARN_UNUSED SW_DLLPUBLIC SwPaM : public sw::Ring<SwPaM> { SwPosition m_Bound1; SwPosition m_Bound2; diff --git a/sw/inc/ring.hxx b/sw/inc/ring.hxx index ad9cce5c796f..a03db4c68cee 100644 --- a/sw/inc/ring.hxx +++ b/sw/inc/ring.hxx @@ -36,7 +36,7 @@ namespace sw * @example sw/qa/core/uwriter.cxx */ template <typename value_type> - class Ring + class SAL_WARN_UNUSED Ring { public: typedef typename std::add_const<value_type>::type const_value_type; @@ -148,7 +148,7 @@ namespace sw * helper class that provides Svalue_typeL-style container iteration to the ring */ template <typename value_type> - class RingContainer final + class SAL_WARN_UNUSED RingContainer final { private: /** the item in the ring where iteration starts */ |