add SAL_WARN_UNUSED to css::uno::WeakReference and SvCompatWeakRef

Change-Id: Idb784d398ed22f2291f1beaffb82f68642d68bcd
This commit is contained in:
Noel Grandin
2015-11-24 10:56:03 +02:00
parent 4bd8ffd27f
commit c18c50cda3
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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: