mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1095098 - followup - add back some static analysis attributes lost in a rebase; r=me
This commit is contained in:
parent
ddd0c9c133
commit
60776ece5a
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user