mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 856108 - Port static analyses to clang, part 2h: use MOZ_STACK_CLASS everywhere else. r=bsmedberg
This commit is contained in:
parent
8b560d8a3f
commit
aa1ca5d8f4
@ -10906,7 +10906,7 @@ nsDocShell::WalkHistoryEntries(nsISHEntry *aRootEntry,
|
||||
}
|
||||
|
||||
// callback data for WalkHistoryEntries
|
||||
struct NS_STACK_CLASS CloneAndReplaceData
|
||||
struct MOZ_STACK_CLASS CloneAndReplaceData
|
||||
{
|
||||
CloneAndReplaceData(uint32_t aCloneID, nsISHEntry *aReplaceEntry,
|
||||
bool aCloneChildren, nsISHEntry *aDestTreeParent)
|
||||
|
@ -2366,7 +2366,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
struct NS_STACK_CLASS FixRedirectData
|
||||
struct MOZ_STACK_CLASS FixRedirectData
|
||||
{
|
||||
nsCOMPtr<nsIChannel> mNewChannel;
|
||||
nsCOMPtr<nsIURI> mOriginalURI;
|
||||
|
@ -240,7 +240,7 @@ void nsWatcherWindowEnumerator::WindowRemoved(nsWatcherWindowEntry *inInfo) {
|
||||
********************** JSContextAutoPopper *********************
|
||||
****************************************************************/
|
||||
|
||||
class NS_STACK_CLASS JSContextAutoPopper {
|
||||
class MOZ_STACK_CLASS JSContextAutoPopper {
|
||||
public:
|
||||
JSContextAutoPopper();
|
||||
~JSContextAutoPopper();
|
||||
|
@ -763,7 +763,7 @@ enum CharClass {
|
||||
CHAR_CLASS_END_OF_INPUT };
|
||||
|
||||
// Encapsulates DOM-word to real-word splitting
|
||||
struct NS_STACK_CLASS WordSplitState
|
||||
struct MOZ_STACK_CLASS WordSplitState
|
||||
{
|
||||
mozInlineSpellWordUtil* mWordUtil;
|
||||
const nsDependentSubstring mDOMWordText;
|
||||
|
@ -238,7 +238,7 @@ private:
|
||||
const Message* mMsg;
|
||||
};
|
||||
|
||||
class NS_STACK_CLASS CxxStackFrame
|
||||
class MOZ_STACK_CLASS CxxStackFrame
|
||||
{
|
||||
public:
|
||||
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
|
||||
#ifdef OS_WIN
|
||||
public:
|
||||
struct NS_STACK_CLASS SyncStackFrame
|
||||
struct MOZ_STACK_CLASS SyncStackFrame
|
||||
{
|
||||
SyncStackFrame(SyncChannel* channel, bool rpc);
|
||||
~SyncStackFrame();
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "nscore.h"
|
||||
#include "nsHtml5OwningUTF16Buffer.h"
|
||||
|
||||
class NS_STACK_CLASS nsHtml5DependentUTF16Buffer : public nsHtml5UTF16Buffer
|
||||
class MOZ_STACK_CLASS nsHtml5DependentUTF16Buffer : public nsHtml5UTF16Buffer
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
@ -49,7 +49,7 @@ static NS_DEFINE_CID(kFormProcessorCID, NS_FORMPROCESSOR_CID);
|
||||
* Helper class that opens a notification batch if the current doc
|
||||
* is different from the executor doc.
|
||||
*/
|
||||
class NS_STACK_CLASS nsHtml5OtherDocUpdate {
|
||||
class MOZ_STACK_CLASS nsHtml5OtherDocUpdate {
|
||||
public:
|
||||
nsHtml5OtherDocUpdate(nsIDocument* aCurrentDoc, nsIDocument* aExecutorDoc)
|
||||
{
|
||||
|
@ -133,7 +133,7 @@ protected:
|
||||
* Note that this always just resets the statement. If the statement doesn't
|
||||
* need resetting, the reset operation is inexpensive.
|
||||
*/
|
||||
class NS_STACK_CLASS mozStorageStatementScoper
|
||||
class MOZ_STACK_CLASS mozStorageStatementScoper
|
||||
{
|
||||
public:
|
||||
mozStorageStatementScoper(mozIStorageStatement* aStatement)
|
||||
|
@ -128,7 +128,7 @@ private:
|
||||
* Automatically acquires the mutex when it enters scope, and releases it when
|
||||
* it leaves scope.
|
||||
*/
|
||||
class NS_STACK_CLASS SQLiteMutexAutoLock
|
||||
class MOZ_STACK_CLASS SQLiteMutexAutoLock
|
||||
{
|
||||
public:
|
||||
SQLiteMutexAutoLock(SQLiteMutex &aMutex)
|
||||
@ -150,7 +150,7 @@ private:
|
||||
* Automatically releases the mutex when it enters scope, and acquires it when
|
||||
* it leaves scope.
|
||||
*/
|
||||
class NS_STACK_CLASS SQLiteMutexAutoUnlock
|
||||
class MOZ_STACK_CLASS SQLiteMutexAutoUnlock
|
||||
{
|
||||
public:
|
||||
SQLiteMutexAutoUnlock(SQLiteMutex &aMutex)
|
||||
|
@ -193,7 +193,7 @@ void profiler_unlock()
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
class NS_STACK_CLASS SamplerStackFrameRAII {
|
||||
class MOZ_STACK_CLASS SamplerStackFrameRAII {
|
||||
public:
|
||||
// we only copy the strings at save time, so to take multiple parameters we'd need to copy them then.
|
||||
SamplerStackFrameRAII(const char *aInfo, uint32_t line) {
|
||||
@ -207,7 +207,7 @@ private:
|
||||
};
|
||||
|
||||
static const int SAMPLER_MAX_STRING = 128;
|
||||
class NS_STACK_CLASS SamplerStackFramePrintfRAII {
|
||||
class MOZ_STACK_CLASS SamplerStackFramePrintfRAII {
|
||||
public:
|
||||
// we only copy the strings at save time, so to take multiple parameters we'd need to copy them then.
|
||||
SamplerStackFramePrintfRAII(const char *aDefault, uint32_t line, const char *aFormat, ...) {
|
||||
|
@ -248,7 +248,7 @@ public:
|
||||
* since popup widget geometry is observable from script and expected to
|
||||
* update synchronously.
|
||||
*/
|
||||
class NS_STACK_CLASS AutoDisableRefresh {
|
||||
class MOZ_STACK_CLASS AutoDisableRefresh {
|
||||
public:
|
||||
AutoDisableRefresh(nsViewManager* aVM) {
|
||||
if (aVM) {
|
||||
|
@ -492,7 +492,7 @@ protected:
|
||||
// When On*Composition() is called without document lock, we need to flush
|
||||
// the recorded actions at quitting the method.
|
||||
// AutoPendingActionAndContentFlusher class is usedful for it.
|
||||
class NS_STACK_CLASS AutoPendingActionAndContentFlusher MOZ_FINAL
|
||||
class MOZ_STACK_CLASS AutoPendingActionAndContentFlusher MOZ_FINAL
|
||||
{
|
||||
public:
|
||||
AutoPendingActionAndContentFlusher(nsTextStore* aTextStore)
|
||||
|
@ -787,7 +787,7 @@ NS_IMETHODIMP nsContentTreeOwner::SetTitle(const PRUnichar* aTitle)
|
||||
return mXULWindow->SetTitle(title.get());
|
||||
}
|
||||
|
||||
NS_STACK_CLASS class NullJSContextPusher {
|
||||
class MOZ_STACK_CLASS NullJSContextPusher {
|
||||
public:
|
||||
NullJSContextPusher() {
|
||||
mService = do_GetService(sJSStackContractID);
|
||||
|
Loading…
x
Reference in New Issue
Block a user