Bug 1095098 - followup - add back some static analysis attributes lost in a rebase; r=me

This commit is contained in:
Nathan Froyd 2015-04-20 16:17:00 -04:00
parent ddd0c9c133
commit 60776ece5a

View File

@ -7,13 +7,15 @@
#ifndef nsQueryObject_h
#define nsQueryObject_h
#include "mozilla/Attributes.h"
#include "nsCOMPtr.h"
#include "nsRefPtr.h"
/*****************************************************************************/
template<class T>
class nsQueryObject : public nsCOMPtr_helper
class MOZ_STACK_CLASS nsQueryObject : public nsCOMPtr_helper
{
public:
explicit nsQueryObject(T* aRawPtr)
@ -29,11 +31,11 @@ public:
return status;
}
private:
T* mRawPtr;
T* MOZ_NON_OWNING_REF mRawPtr;
};
template<class T>
class nsQueryObjectWithError : public nsCOMPtr_helper
class MOZ_STACK_CLASS nsQueryObjectWithError : public nsCOMPtr_helper
{
public:
nsQueryObjectWithError(T* aRawPtr, nsresult* aErrorPtr)
@ -52,7 +54,7 @@ public:
return status;
}
private:
T* mRawPtr;
T* MOZ_NON_OWNING_REF mRawPtr;
nsresult* mErrorPtr;
};