Bug 856108 - Port static analyses to clang, part 2c: use MOZ_STACK_CLASS in editor. r=ehsan

This commit is contained in:
Joshua Cranmer 2013-04-11 22:20:27 -05:00
parent 292c1594b0
commit 7c34a7372a
4 changed files with 18 additions and 18 deletions

View File

@ -26,7 +26,7 @@ template <class E> class nsCOMArray;
* stack based helper class for batching a collection of txns inside a
* placeholder txn.
*/
class NS_STACK_CLASS nsAutoPlaceHolderBatch
class MOZ_STACK_CLASS nsAutoPlaceHolderBatch
{
private:
nsCOMPtr<nsIEditor> mEd;
@ -41,7 +41,7 @@ class NS_STACK_CLASS nsAutoPlaceHolderBatch
* Note: I changed this to use placeholder batching so that we get
* proper selection save/restore across undo/redo.
*/
class nsAutoEditBatch : public nsAutoPlaceHolderBatch
class MOZ_STACK_CLASS nsAutoEditBatch : public nsAutoPlaceHolderBatch
{
public:
nsAutoEditBatch( nsIEditor *aEd) : nsAutoPlaceHolderBatch(aEd,nullptr) {}
@ -52,7 +52,7 @@ class nsAutoEditBatch : public nsAutoPlaceHolderBatch
* stack based helper class for saving/restoring selection. Note that this
* assumes that the nodes involved are still around afterwards!
*/
class NS_STACK_CLASS nsAutoSelectionReset
class MOZ_STACK_CLASS nsAutoSelectionReset
{
private:
/** ref-counted reference to the selection that we are supposed to restore */
@ -73,7 +73,7 @@ class NS_STACK_CLASS nsAutoSelectionReset
/***************************************************************************
* stack based helper class for StartOperation()/EndOperation() sandwich
*/
class NS_STACK_CLASS nsAutoRules
class MOZ_STACK_CLASS nsAutoRules
{
public:
@ -105,7 +105,7 @@ class NS_STACK_CLASS nsAutoRules
* stack based helper class for turning off active selection adjustment
* by low level transactions
*/
class NS_STACK_CLASS nsAutoTxnsConserveSelection
class MOZ_STACK_CLASS nsAutoTxnsConserveSelection
{
public:
@ -134,7 +134,7 @@ class NS_STACK_CLASS nsAutoTxnsConserveSelection
/***************************************************************************
* stack based helper class for batching reflow and paint requests.
*/
class NS_STACK_CLASS nsAutoUpdateViewBatch
class MOZ_STACK_CLASS nsAutoUpdateViewBatch
{
public:
@ -166,7 +166,7 @@ class nsBoolDomIterFunctor
virtual bool operator()(nsIDOMNode* aNode)=0;
};
class NS_STACK_CLASS nsDOMIterator
class MOZ_STACK_CLASS nsDOMIterator
{
public:
nsDOMIterator();
@ -180,7 +180,7 @@ class NS_STACK_CLASS nsDOMIterator
nsCOMPtr<nsIContentIterator> mIter;
};
class nsDOMSubtreeIterator : public nsDOMIterator
class MOZ_STACK_CLASS nsDOMSubtreeIterator : public nsDOMIterator
{
public:
nsDOMSubtreeIterator();
@ -202,7 +202,7 @@ class nsTrivialFunctor : public nsBoolDomIterFunctor
/******************************************************************************
* general dom point utility struct
*****************************************************************************/
struct NS_STACK_CLASS DOMPoint
struct MOZ_STACK_CLASS DOMPoint
{
nsCOMPtr<nsIDOMNode> node;
int32_t offset;

View File

@ -115,7 +115,7 @@ class nsRangeUpdater
* preservation of dom points across editor actions
*/
class NS_STACK_CLASS nsAutoTrackDOMPoint
class MOZ_STACK_CLASS nsAutoTrackDOMPoint
{
private:
nsRangeUpdater &mRU;
@ -151,7 +151,7 @@ class NS_STACK_CLASS nsAutoTrackDOMPoint
* Will/DidReplaceContainer()
*/
class NS_STACK_CLASS nsAutoReplaceContainerSelNotify
class MOZ_STACK_CLASS nsAutoReplaceContainerSelNotify
{
private:
nsRangeUpdater &mRU;
@ -179,7 +179,7 @@ class NS_STACK_CLASS nsAutoReplaceContainerSelNotify
* Will/DidRemoveContainer()
*/
class NS_STACK_CLASS nsAutoRemoveContainerSelNotify
class MOZ_STACK_CLASS nsAutoRemoveContainerSelNotify
{
private:
nsRangeUpdater &mRU;
@ -214,7 +214,7 @@ class NS_STACK_CLASS nsAutoRemoveContainerSelNotify
* Will/DidInsertContainer()
*/
class NS_STACK_CLASS nsAutoInsertContainerSelNotify
class MOZ_STACK_CLASS nsAutoInsertContainerSelNotify
{
private:
nsRangeUpdater &mRU;
@ -238,7 +238,7 @@ class NS_STACK_CLASS nsAutoInsertContainerSelNotify
* Will/DidMoveNode()
*/
class NS_STACK_CLASS nsAutoMoveNodeSelNotify
class MOZ_STACK_CLASS nsAutoMoveNodeSelNotify
{
private:
nsRangeUpdater &mRU;

View File

@ -46,7 +46,7 @@ using namespace mozilla;
/***************************************************************************
* stack based helper class for restoring selection after table edit
*/
class NS_STACK_CLASS nsSetSelectionAfterTableEdit
class MOZ_STACK_CLASS nsSetSelectionAfterTableEdit
{
private:
nsCOMPtr<nsITableEditor> mEd;
@ -76,7 +76,7 @@ class NS_STACK_CLASS nsSetSelectionAfterTableEdit
};
// Stack-class to turn on/off selection batching for table selection
class NS_STACK_CLASS nsSelectionBatcherForTable
class MOZ_STACK_CLASS nsSelectionBatcherForTable
{
private:
nsCOMPtr<nsISelectionPrivate> mSelection;

View File

@ -135,7 +135,7 @@ inline const WSType operator|(const WSType::Enum& aLeft,
}
class NS_STACK_CLASS nsWSRunObject
class MOZ_STACK_CLASS nsWSRunObject
{
public:
@ -288,7 +288,7 @@ class NS_STACK_CLASS nsWSRunObject
// always within a textnode that is one of the nodes stored in the list
// in the wsRunObject. For convenience, the character at that point is also
// stored in the struct.
struct NS_STACK_CLASS WSPoint
struct MOZ_STACK_CLASS WSPoint
{
nsCOMPtr<nsIContent> mTextNode;
uint32_t mOffset;