summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-24 10:56:03 +0200
committerNoel Grandin <noel@peralex.com>2015-11-24 11:04:33 +0200
commitc18c50cda347e239ed48f2e390f3f6a65533a3b0 (patch)
tree1b3343e02ef0e2b55471a029b83b27fb16567ebc /include
parent4bd8ffd27f17ec4915790a260087ef1890169911 (diff)
add SAL_WARN_UNUSED to css::uno::WeakReference and SvCompatWeakRef
Change-Id: Idb784d398ed22f2291f1beaffb82f68642d68bcd
Diffstat (limited to 'include')
-rw-r--r--include/cppuhelper/weakref.hxx2
-rw-r--r--include/tools/ref.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/cppuhelper/weakref.hxx b/include/cppuhelper/weakref.hxx
index 8494ddd189cb..458bd9306706 100644
--- a/include/cppuhelper/weakref.hxx
+++ b/include/cppuhelper/weakref.hxx
@@ -119,7 +119,7 @@ protected:
@tparam interface_type type of interface
*/
template< class interface_type >
-class WeakReference : public WeakReferenceHelper
+class SAL_WARN_UNUSED WeakReference : public WeakReferenceHelper
{
public:
/** Default ctor. Creates an empty weak reference.
diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx
index 45070a20a147..9cd1bf550f3e 100644
--- a/include/tools/ref.hxx
+++ b/include/tools/ref.hxx
@@ -183,7 +183,7 @@ public:
/** We only have one weak reference in LO, in include/sfx2/frame.hxx, class SfxFrameWeak.
*/
template<typename T>
-class SvCompatWeakRef
+class SAL_WARN_UNUSED SvCompatWeakRef
{
tools::SvRef< SvCompatWeakHdl<T> > _xHdl;
public: