Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit aa1ca5d

Browse files
committed
Bug 856108 - Port static analyses to clang, part 2h: use MOZ_STACK_CLASS everywhere else. r=bsmedberg
1 parent 8b560d8 commit aa1ca5d

14 files changed

Lines changed: 16 additions & 16 deletions

File tree

docshell/base/nsDocShell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10906,7 +10906,7 @@ nsDocShell::WalkHistoryEntries(nsISHEntry *aRootEntry,
1090610906
}
1090710907

1090810908
// callback data for WalkHistoryEntries
10909-
struct NS_STACK_CLASS CloneAndReplaceData
10909+
struct MOZ_STACK_CLASS CloneAndReplaceData
1091010910
{
1091110911
CloneAndReplaceData(uint32_t aCloneID, nsISHEntry *aReplaceEntry,
1091210912
bool aCloneChildren, nsISHEntry *aDestTreeParent)

embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2366,7 +2366,7 @@ class nsMyISupportsKey : public nsISupportsKey
23662366
}
23672367
};
23682368

2369-
struct NS_STACK_CLASS FixRedirectData
2369+
struct MOZ_STACK_CLASS FixRedirectData
23702370
{
23712371
nsCOMPtr<nsIChannel> mNewChannel;
23722372
nsCOMPtr<nsIURI> mOriginalURI;

embedding/components/windowwatcher/src/nsWindowWatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void nsWatcherWindowEnumerator::WindowRemoved(nsWatcherWindowEntry *inInfo) {
240240
********************** JSContextAutoPopper *********************
241241
****************************************************************/
242242

243-
class NS_STACK_CLASS JSContextAutoPopper {
243+
class MOZ_STACK_CLASS JSContextAutoPopper {
244244
public:
245245
JSContextAutoPopper();
246246
~JSContextAutoPopper();

extensions/spellcheck/src/mozInlineSpellWordUtil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ enum CharClass {
763763
CHAR_CLASS_END_OF_INPUT };
764764

765765
// Encapsulates DOM-word to real-word splitting
766-
struct NS_STACK_CLASS WordSplitState
766+
struct MOZ_STACK_CLASS WordSplitState
767767
{
768768
mozInlineSpellWordUtil* mWordUtil;
769769
const nsDependentSubstring mDOMWordText;

ipc/glue/RPCChannel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class RPCChannel : public SyncChannel
238238
const Message* mMsg;
239239
};
240240

241-
class NS_STACK_CLASS CxxStackFrame
241+
class MOZ_STACK_CLASS CxxStackFrame
242242
{
243243
public:
244244

ipc/glue/SyncChannel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class SyncChannel : public AsyncChannel
6767

6868
#ifdef OS_WIN
6969
public:
70-
struct NS_STACK_CLASS SyncStackFrame
70+
struct MOZ_STACK_CLASS SyncStackFrame
7171
{
7272
SyncStackFrame(SyncChannel* channel, bool rpc);
7373
~SyncStackFrame();

parser/html/nsHtml5DependentUTF16Buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "nscore.h"
99
#include "nsHtml5OwningUTF16Buffer.h"
1010

11-
class NS_STACK_CLASS nsHtml5DependentUTF16Buffer : public nsHtml5UTF16Buffer
11+
class MOZ_STACK_CLASS nsHtml5DependentUTF16Buffer : public nsHtml5UTF16Buffer
1212
{
1313
public:
1414
/**

parser/html/nsHtml5TreeOperation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static NS_DEFINE_CID(kFormProcessorCID, NS_FORMPROCESSOR_CID);
4949
* Helper class that opens a notification batch if the current doc
5050
* is different from the executor doc.
5151
*/
52-
class NS_STACK_CLASS nsHtml5OtherDocUpdate {
52+
class MOZ_STACK_CLASS nsHtml5OtherDocUpdate {
5353
public:
5454
nsHtml5OtherDocUpdate(nsIDocument* aCurrentDoc, nsIDocument* aExecutorDoc)
5555
{

storage/public/mozStorageHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class mozStorageTransaction
133133
* Note that this always just resets the statement. If the statement doesn't
134134
* need resetting, the reset operation is inexpensive.
135135
*/
136-
class NS_STACK_CLASS mozStorageStatementScoper
136+
class MOZ_STACK_CLASS mozStorageStatementScoper
137137
{
138138
public:
139139
mozStorageStatementScoper(mozIStorageStatement* aStatement)

storage/src/SQLiteMutex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class SQLiteMutex : private BlockingResourceBase
128128
* Automatically acquires the mutex when it enters scope, and releases it when
129129
* it leaves scope.
130130
*/
131-
class NS_STACK_CLASS SQLiteMutexAutoLock
131+
class MOZ_STACK_CLASS SQLiteMutexAutoLock
132132
{
133133
public:
134134
SQLiteMutexAutoLock(SQLiteMutex &aMutex)
@@ -150,7 +150,7 @@ class NS_STACK_CLASS SQLiteMutexAutoLock
150150
* Automatically releases the mutex when it enters scope, and acquires it when
151151
* it leaves scope.
152152
*/
153-
class NS_STACK_CLASS SQLiteMutexAutoUnlock
153+
class MOZ_STACK_CLASS SQLiteMutexAutoUnlock
154154
{
155155
public:
156156
SQLiteMutexAutoUnlock(SQLiteMutex &aMutex)

0 commit comments

Comments
 (0)