Bug 818817 - Fix some compiler warnings, r=Ms2ger

This commit is contained in:
Saurabh Anand 2012-12-09 22:53:19 +05:30
Родитель 6ddf84f8ef
Коммит 6de7befa37
56 изменённых файлов: 406 добавлений и 406 удалений

Просмотреть файл

@ -74,7 +74,7 @@ private:
class EmbeddedObjCollector : public AccCollector class EmbeddedObjCollector : public AccCollector
{ {
public: public:
virtual ~EmbeddedObjCollector() { }; virtual ~EmbeddedObjCollector() { }
public: public:
virtual int32_t GetIndexAt(Accessible* aAccessible); virtual int32_t GetIndexAt(Accessible* aAccessible);

Просмотреть файл

@ -213,7 +213,7 @@ public:
mNode = aTargetNode; mNode = aTargetNode;
mParent = mAccessible->Parent(); mParent = mAccessible->Parent();
} }
virtual ~AccMutationEvent() { }; virtual ~AccMutationEvent() { }
// Event // Event
static const EventGroup kEventGroup = eMutationEvent; static const EventGroup kEventGroup = eMutationEvent;
@ -291,7 +291,7 @@ public:
AccReorderEvent(Accessible* aTarget) : AccReorderEvent(Accessible* aTarget) :
AccEvent(::nsIAccessibleEvent::EVENT_REORDER, aTarget, AccEvent(::nsIAccessibleEvent::EVENT_REORDER, aTarget,
eAutoDetect, eCoalesceReorder) { } eAutoDetect, eCoalesceReorder) { }
virtual ~AccReorderEvent() { }; virtual ~AccReorderEvent() { }
// Event // Event
static const EventGroup kEventGroup = eReorderEvent; static const EventGroup kEventGroup = eReorderEvent;

Просмотреть файл

@ -28,7 +28,7 @@ class DocAccessible;
class Notification class Notification
{ {
public: public:
virtual ~Notification() { }; virtual ~Notification() { }
NS_INLINE_DECL_REFCOUNTING(Notification) NS_INLINE_DECL_REFCOUNTING(Notification)

Просмотреть файл

@ -17,7 +17,7 @@ class StyleInfo
{ {
public: public:
StyleInfo(dom::Element* aElement, nsIPresShell* aPresShell); StyleInfo(dom::Element* aElement, nsIPresShell* aPresShell);
~StyleInfo() { }; ~StyleInfo() { }
void Display(nsAString& aValue); void Display(nsAString& aValue);
void TextAlign(nsAString& aValue); void TextAlign(nsAString& aValue);

Просмотреть файл

@ -304,8 +304,8 @@ public:
class nsAccessibleDOMStringList : public nsIDOMDOMStringList class nsAccessibleDOMStringList : public nsIDOMDOMStringList
{ {
public: public:
nsAccessibleDOMStringList() {}; nsAccessibleDOMStringList() {}
virtual ~nsAccessibleDOMStringList() {}; virtual ~nsAccessibleDOMStringList() {}
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS
NS_DECL_NSIDOMDOMSTRINGLIST NS_DECL_NSIDOMDOMSTRINGLIST

Просмотреть файл

@ -950,7 +950,7 @@ public:
KeyBinding() : mKey(0), mModifierMask(0) {} KeyBinding() : mKey(0), mModifierMask(0) {}
KeyBinding(uint32_t aKey, uint32_t aModifierMask) : KeyBinding(uint32_t aKey, uint32_t aModifierMask) :
mKey(aKey), mModifierMask(aModifierMask) {}; mKey(aKey), mModifierMask(aModifierMask) {}
inline bool IsEmpty() const { return !mKey; } inline bool IsEmpty() const { return !mKey; }
inline uint32_t Key() const { return mKey; } inline uint32_t Key() const { return mKey; }

Просмотреть файл

@ -20,7 +20,7 @@ class HTMLHRAccessible : public LeafAccessible
public: public:
HTMLHRAccessible(nsIContent* aContent, DocAccessible* aDoc) : HTMLHRAccessible(nsIContent* aContent, DocAccessible* aDoc) :
LeafAccessible(aContent, aDoc) {}; LeafAccessible(aContent, aDoc) {}
// Accessible // Accessible
virtual a11y::role NativeRole(); virtual a11y::role NativeRole();
@ -33,7 +33,7 @@ class HTMLBRAccessible : public LeafAccessible
{ {
public: public:
HTMLBRAccessible(nsIContent* aContent, DocAccessible* aDoc) : HTMLBRAccessible(nsIContent* aContent, DocAccessible* aDoc) :
LeafAccessible(aContent, aDoc) {}; LeafAccessible(aContent, aDoc) {}
// Accessible // Accessible
virtual a11y::role NativeRole(); virtual a11y::role NativeRole();
@ -52,7 +52,7 @@ class HTMLLabelAccessible : public HyperTextAccessibleWrap
public: public:
HTMLLabelAccessible(nsIContent* aContent, DocAccessible* aDoc) : HTMLLabelAccessible(nsIContent* aContent, DocAccessible* aDoc) :
HyperTextAccessibleWrap(aContent, aDoc) {}; HyperTextAccessibleWrap(aContent, aDoc) {}
NS_DECL_ISUPPORTS_INHERITED NS_DECL_ISUPPORTS_INHERITED
@ -71,7 +71,7 @@ class HTMLOutputAccessible : public HyperTextAccessibleWrap
public: public:
HTMLOutputAccessible(nsIContent* aContent, DocAccessible* aDoc) : HTMLOutputAccessible(nsIContent* aContent, DocAccessible* aDoc) :
HyperTextAccessibleWrap(aContent, aDoc) {}; HyperTextAccessibleWrap(aContent, aDoc) {}
NS_DECL_ISUPPORTS_INHERITED NS_DECL_ISUPPORTS_INHERITED

Просмотреть файл

@ -131,7 +131,7 @@ class nsObjectLoadingContent : public nsImageLoadingContent
* Used by pluginHost to know if we're loading with a channel, so it * Used by pluginHost to know if we're loading with a channel, so it
* will not open its own. * will not open its own.
*/ */
bool SrcStreamLoading() { return mSrcStreamLoading; }; bool SrcStreamLoading() { return mSrcStreamLoading; }
protected: protected:
/** /**

Просмотреть файл

@ -31,7 +31,7 @@ enum MediaEngineState {
class MediaEngine class MediaEngine
{ {
public: public:
virtual ~MediaEngine() {}; virtual ~MediaEngine() {}
/* Populate an array of video sources in the nsTArray. Also include devices /* Populate an array of video sources in the nsTArray. Also include devices
* that are currently unavailable. */ * that are currently unavailable. */
@ -48,7 +48,7 @@ public:
class MediaEngineSource : public nsISupports class MediaEngineSource : public nsISupports
{ {
public: public:
virtual ~MediaEngineSource() {}; virtual ~MediaEngineSource() {}
/* Populate the human readable name of this device in the nsAString */ /* Populate the human readable name of this device in the nsAString */
virtual void GetName(nsAString&) = 0; virtual void GetName(nsAString&) = 0;
@ -114,7 +114,7 @@ struct MediaEngineVideoOptions {
class MediaEngineVideoSource : public MediaEngineSource class MediaEngineVideoSource : public MediaEngineSource
{ {
public: public:
virtual ~MediaEngineVideoSource() {}; virtual ~MediaEngineVideoSource() {}
/* Return a MediaEngineVideoOptions struct with appropriate values for all /* Return a MediaEngineVideoOptions struct with appropriate values for all
* fields. */ * fields. */
@ -127,7 +127,7 @@ public:
class MediaEngineAudioSource : public MediaEngineSource class MediaEngineAudioSource : public MediaEngineSource
{ {
public: public:
virtual ~MediaEngineAudioSource() {}; virtual ~MediaEngineAudioSource() {}
}; };
} }

Просмотреть файл

@ -95,7 +95,7 @@ public:
if (mList) { if (mList) {
mList->mItems[mListIndex] = nullptr; mList->mItems[mListIndex] = nullptr;
} }
}; }
/** /**
* Create an unowned copy of an owned length. The caller is responsible for * Create an unowned copy of an owned length. The caller is responsible for

Просмотреть файл

@ -71,7 +71,7 @@ public:
if (mAList) { if (mAList) {
( IsAnimValList() ? mAList->mAnimVal : mAList->mBaseVal ) = nullptr; ( IsAnimValList() ? mAList->mAnimVal : mAList->mBaseVal ) = nullptr;
} }
}; }
virtual JSObject* WrapObject(JSContext *cx, JSObject *scope, virtual JSObject* WrapObject(JSContext *cx, JSObject *scope,
bool *triedToWrap); bool *triedToWrap);

Просмотреть файл

@ -70,7 +70,7 @@ public:
if (mList) { if (mList) {
mList->mItems[mListIndex] = nullptr; mList->mItems[mListIndex] = nullptr;
} }
}; }
/** /**
* Create an unowned copy. The caller is responsible for the first AddRef(). * Create an unowned copy. The caller is responsible for the first AddRef().

Просмотреть файл

@ -81,7 +81,7 @@ public:
if (mList) { if (mList) {
mList->mItems[mListIndex] = nullptr; mList->mItems[mListIndex] = nullptr;
} }
}; }
/** /**
* Create an unowned copy of an owned transform. The caller is responsible for * Create an unowned copy of an owned transform. The caller is responsible for

Просмотреть файл

@ -141,7 +141,7 @@ public:
NS_ADDREF(*aStyle); NS_ADDREF(*aStyle);
return NS_OK; return NS_OK;
} }
NS_FORWARD_NSIFRAMELOADEROWNER(static_cast<nsXULElement*>(mElement.get())->); NS_FORWARD_NSIFRAMELOADEROWNER(static_cast<nsXULElement*>(mElement.get())->)
private: private:
nsCOMPtr<nsIDOMXULElement> mElement; nsCOMPtr<nsIDOMXULElement> mElement;
}; };

Просмотреть файл

@ -103,7 +103,7 @@ public:
JSObject** aFunctionObject); JSObject** aFunctionObject);
virtual nsIScriptGlobalObject *GetGlobalObject(); virtual nsIScriptGlobalObject *GetGlobalObject();
inline nsIScriptGlobalObject *GetGlobalObjectRef() { return mGlobalObjectRef; }; inline nsIScriptGlobalObject *GetGlobalObjectRef() { return mGlobalObjectRef; }
virtual JSContext* GetNativeContext(); virtual JSContext* GetNativeContext();
virtual JSObject* GetNativeGlobal(); virtual JSObject* GetNativeGlobal();

Просмотреть файл

@ -254,13 +254,13 @@ public:
mSource = aSource; mSource = aSource;
mType.Assign(NS_LITERAL_STRING("video")); mType.Assign(NS_LITERAL_STRING("video"));
mSource->GetName(mName); mSource->GetName(mName);
}; }
MediaDevice(MediaEngineAudioSource* aSource) { MediaDevice(MediaEngineAudioSource* aSource) {
mSource = aSource; mSource = aSource;
mType.Assign(NS_LITERAL_STRING("audio")); mType.Assign(NS_LITERAL_STRING("audio"));
mSource->GetName(mName); mSource->GetName(mName);
}; }
virtual ~MediaDevice() {}; virtual ~MediaDevice() {}
MediaEngineSource* GetSource(); MediaEngineSource* GetSource();
private: private:
@ -317,7 +317,7 @@ private:
WindowTable *GetActiveWindows() { WindowTable *GetActiveWindows() {
NS_ASSERTION(NS_IsMainThread(), "Only access windowlist on main thread"); NS_ASSERTION(NS_IsMainThread(), "Only access windowlist on main thread");
return &mActiveWindows; return &mActiveWindows;
}; }
// Make private because we want only one instance of this class // Make private because we want only one instance of this class
MediaManager() MediaManager()
@ -326,11 +326,11 @@ private:
, mBackend(nullptr) { , mBackend(nullptr) {
mActiveWindows.Init(); mActiveWindows.Init();
mActiveCallbacks.Init(); mActiveCallbacks.Init();
}; }
~MediaManager() { ~MediaManager() {
delete mBackend; delete mBackend;
}; }
// ONLY access from MainThread so we don't need to lock // ONLY access from MainThread so we don't need to lock
WindowTable mActiveWindows; WindowTable mActiveWindows;

Просмотреть файл

@ -84,7 +84,7 @@ public:
} }
private: private:
uint16_t mEnum; uint16_t mEnum;
void bool_conversion_helper() {}; void bool_conversion_helper() {}
public: public:
// Allow boolean conversion with no numeric conversion // Allow boolean conversion with no numeric conversion
typedef void (WSType::*bool_type)(); typedef void (WSType::*bool_type)();

Просмотреть файл

@ -89,7 +89,7 @@ public:
// If we're doing a "size decode", we more or less pass through the image // If we're doing a "size decode", we more or less pass through the image
// data, stopping only to scoop out the image dimensions. A size decode // data, stopping only to scoop out the image dimensions. A size decode
// must be enabled by SetSizeDecode() _before_calling Init(). // must be enabled by SetSizeDecode() _before_calling Init().
bool IsSizeDecode() { return mSizeDecode; }; bool IsSizeDecode() { return mSizeDecode; }
void SetSizeDecode(bool aSizeDecode) void SetSizeDecode(bool aSizeDecode)
{ {
NS_ABORT_IF_FALSE(!mInitialized, "Can't set size decode after Init()!"); NS_ABORT_IF_FALSE(!mInitialized, "Can't set size decode after Init()!");
@ -104,10 +104,10 @@ public:
uint32_t GetCompleteFrameCount() { return mInFrame ? mFrameCount - 1 : mFrameCount; } uint32_t GetCompleteFrameCount() { return mInFrame ? mFrameCount - 1 : mFrameCount; }
// Error tracking // Error tracking
bool HasError() { return HasDataError() || HasDecoderError(); }; bool HasError() { return HasDataError() || HasDecoderError(); }
bool HasDataError() { return mDataError; }; bool HasDataError() { return mDataError; }
bool HasDecoderError() { return NS_FAILED(mFailCode); }; bool HasDecoderError() { return NS_FAILED(mFailCode); }
nsresult GetDecoderError() { return mFailCode; }; nsresult GetDecoderError() { return mFailCode; }
void PostResizeError() { PostDataError(); } void PostResizeError() { PostDataError(); }
bool GetDecodeDone() const { bool GetDecodeDone() const {
return mDecodeDone; return mDecodeDone;

Просмотреть файл

@ -114,7 +114,7 @@ public:
imgStatusTracker& GetStatusTracker(); imgStatusTracker& GetStatusTracker();
// Get the current principal of the image. No AddRefing. // Get the current principal of the image. No AddRefing.
inline nsIPrincipal* GetPrincipal() const { return mPrincipal.get(); }; inline nsIPrincipal* GetPrincipal() const { return mPrincipal.get(); }
// Resize the cache entry to 0 if it exists // Resize the cache entry to 0 if it exists
void ResetCacheEntry(); void ResetCacheEntry();

Просмотреть файл

@ -114,7 +114,7 @@ public:
// with its status. Weak pointers. // with its status. Weak pointers.
void AddConsumer(imgRequestProxy* aConsumer); void AddConsumer(imgRequestProxy* aConsumer);
bool RemoveConsumer(imgRequestProxy* aConsumer, nsresult aStatus); bool RemoveConsumer(imgRequestProxy* aConsumer, nsresult aStatus);
size_t ConsumerCount() const { return mConsumers.Length(); }; size_t ConsumerCount() const { return mConsumers.Length(); }
// This is intentionally non-general because its sole purpose is to support an // This is intentionally non-general because its sole purpose is to support an
// some obscure network priority logic in imgRequest. That stuff could probably // some obscure network priority logic in imgRequest. That stuff could probably
@ -190,8 +190,8 @@ public:
void ClearRequest(); void ClearRequest();
// Weak pointer getters - no AddRefs. // Weak pointer getters - no AddRefs.
inline mozilla::image::Image* GetImage() const { return mImage; }; inline mozilla::image::Image* GetImage() const { return mImage; }
inline imgRequest* GetRequest() const { return mRequest; }; inline imgRequest* GetRequest() const { return mRequest; }
inline imgIDecoderObserver* GetDecoderObserver() { return mTrackerObserver.get(); } inline imgIDecoderObserver* GetDecoderObserver() { return mTrackerObserver.get(); }

Просмотреть файл

@ -304,7 +304,7 @@ struct ClosureInfo
ffi_closure_free(closure); ffi_closure_free(closure);
if (errResult) if (errResult)
js_free(errResult); js_free(errResult);
}; }
}; };
bool IsCTypesGlobal(JSObject* obj); bool IsCTypesGlobal(JSObject* obj);

Просмотреть файл

@ -135,7 +135,7 @@ class BailoutClosure
void constructFrame() { void constructFrame() {
guards_.construct(); guards_.construct();
}; }
InvokeArgsGuard *argsGuard() { InvokeArgsGuard *argsGuard() {
return &guards_.ref().iag; return &guards_.ref().iag;
} }

Просмотреть файл

@ -26,7 +26,7 @@ class BitSet : private TempObject
private: private:
BitSet(unsigned int max) : BitSet(unsigned int max) :
max_(max), max_(max),
bits_(NULL) {}; bits_(NULL) {}
unsigned int max_; unsigned int max_;
uint32_t *bits_; uint32_t *bits_;

Просмотреть файл

@ -53,7 +53,7 @@ class FixedList
const T &operator [](size_t index) const { const T &operator [](size_t index) const {
JS_ASSERT(index < length_); JS_ASSERT(index < length_);
return list_[index]; return list_[index];
}; }
}; };
} // namespace ion } // namespace ion

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -624,7 +624,7 @@ class LInstruction
virtual bool isCall() const { virtual bool isCall() const {
return false; return false;
}; }
uint32_t id() const { uint32_t id() const {
return id_; return id_;
} }

Просмотреть файл

@ -125,8 +125,8 @@ class LinearScanAllocator : public LiveRangeAllocator<LinearScanVirtualRegister>
void validateIntervals(); void validateIntervals();
void validateAllocations(); void validateAllocations();
#else #else
inline void validateIntervals() { }; inline void validateIntervals() { }
inline void validateAllocations() { }; inline void validateAllocations() { }
#endif #endif
#ifdef JS_NUNBOX32 #ifdef JS_NUNBOX32

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -343,31 +343,31 @@ struct FunctionInfo<R (*)(JSContext *)> : public VMFunction {
template <class R, class A1> template <class R, class A1>
struct FunctionInfo<R (*)(JSContext *, A1)> : public VMFunction { struct FunctionInfo<R (*)(JSContext *, A1)> : public VMFunction {
typedef R (*pf)(JSContext *, A1); typedef R (*pf)(JSContext *, A1);
FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_1); FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_1)
}; };
template <class R, class A1, class A2> template <class R, class A1, class A2>
struct FunctionInfo<R (*)(JSContext *, A1, A2)> : public VMFunction { struct FunctionInfo<R (*)(JSContext *, A1, A2)> : public VMFunction {
typedef R (*pf)(JSContext *, A1, A2); typedef R (*pf)(JSContext *, A1, A2);
FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_2); FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_2)
}; };
template <class R, class A1, class A2, class A3> template <class R, class A1, class A2, class A3>
struct FunctionInfo<R (*)(JSContext *, A1, A2, A3)> : public VMFunction { struct FunctionInfo<R (*)(JSContext *, A1, A2, A3)> : public VMFunction {
typedef R (*pf)(JSContext *, A1, A2, A3); typedef R (*pf)(JSContext *, A1, A2, A3);
FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_3); FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_3)
}; };
template <class R, class A1, class A2, class A3, class A4> template <class R, class A1, class A2, class A3, class A4>
struct FunctionInfo<R (*)(JSContext *, A1, A2, A3, A4)> : public VMFunction { struct FunctionInfo<R (*)(JSContext *, A1, A2, A3, A4)> : public VMFunction {
typedef R (*pf)(JSContext *, A1, A2, A3, A4); typedef R (*pf)(JSContext *, A1, A2, A3, A4);
FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_4); FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_4)
}; };
template <class R, class A1, class A2, class A3, class A4, class A5> template <class R, class A1, class A2, class A3, class A4, class A5>
struct FunctionInfo<R (*)(JSContext *, A1, A2, A3, A4, A5)> : public VMFunction { struct FunctionInfo<R (*)(JSContext *, A1, A2, A3, A4, A5)> : public VMFunction {
typedef R (*pf)(JSContext *, A1, A2, A3, A4, A5); typedef R (*pf)(JSContext *, A1, A2, A3, A4, A5);
FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_5); FUNCTION_INFO_STRUCT_BODY(FOR_EACH_ARGS_5)
}; };
#undef FUNCTION_INFO_STRUCT_BODY #undef FUNCTION_INFO_STRUCT_BODY

Просмотреть файл

@ -14,7 +14,7 @@ namespace ion {
class LDivI : public LBinaryMath<1> class LDivI : public LBinaryMath<1>
{ {
public: public:
LIR_HEADER(DivI); LIR_HEADER(DivI)
LDivI(const LAllocation &lhs, const LAllocation &rhs, const LDefinition &temp) { LDivI(const LAllocation &lhs, const LAllocation &rhs, const LDefinition &temp) {
setOperand(0, lhs); setOperand(0, lhs);
@ -33,7 +33,7 @@ class LDivI : public LBinaryMath<1>
class LModI : public LBinaryMath<1> class LModI : public LBinaryMath<1>
{ {
public: public:
LIR_HEADER(ModI); LIR_HEADER(ModI)
LModI(const LAllocation &lhs, const LAllocation &rhs) { LModI(const LAllocation &lhs, const LAllocation &rhs) {
setOperand(0, lhs); setOperand(0, lhs);
@ -50,7 +50,7 @@ class LModPowTwoI : public LInstructionHelper<1,1,0>
const int32_t shift_; const int32_t shift_;
public: public:
LIR_HEADER(ModPowTwoI); LIR_HEADER(ModPowTwoI)
LModPowTwoI(const LAllocation &lhs, int32_t shift) LModPowTwoI(const LAllocation &lhs, int32_t shift)
: shift_(shift) : shift_(shift)
@ -70,7 +70,7 @@ class LModPowTwoI : public LInstructionHelper<1,1,0>
class LPowHalfD : public LInstructionHelper<1, 1, 1> class LPowHalfD : public LInstructionHelper<1, 1, 1>
{ {
public: public:
LIR_HEADER(PowHalfD); LIR_HEADER(PowHalfD)
LPowHalfD(const LAllocation &input, const LDefinition &temp) { LPowHalfD(const LAllocation &input, const LDefinition &temp) {
setOperand(0, input); setOperand(0, input);
setTemp(0, temp); setTemp(0, temp);
@ -91,7 +91,7 @@ class LPowHalfD : public LInstructionHelper<1, 1, 1>
class LTableSwitch : public LInstructionHelper<0, 1, 2> class LTableSwitch : public LInstructionHelper<0, 1, 2>
{ {
public: public:
LIR_HEADER(TableSwitch); LIR_HEADER(TableSwitch)
LTableSwitch(const LAllocation &in, const LDefinition &inputCopy, LTableSwitch(const LAllocation &in, const LDefinition &inputCopy,
const LDefinition &jumpTablePointer, MTableSwitch *ins) const LDefinition &jumpTablePointer, MTableSwitch *ins)
@ -121,7 +121,7 @@ class LTableSwitch : public LInstructionHelper<0, 1, 2>
class LTableSwitchV : public LInstructionHelper<0, BOX_PIECES, 3> class LTableSwitchV : public LInstructionHelper<0, BOX_PIECES, 3>
{ {
public: public:
LIR_HEADER(TableSwitchV); LIR_HEADER(TableSwitchV)
LTableSwitchV(const LDefinition &inputCopy, const LDefinition &floatCopy, LTableSwitchV(const LDefinition &inputCopy, const LDefinition &floatCopy,
const LDefinition &jumpTablePointer, MTableSwitch *ins) const LDefinition &jumpTablePointer, MTableSwitch *ins)
@ -153,7 +153,7 @@ class LTableSwitchV : public LInstructionHelper<0, BOX_PIECES, 3>
class LGuardShape : public LInstructionHelper<0, 1, 0> class LGuardShape : public LInstructionHelper<0, 1, 0>
{ {
public: public:
LIR_HEADER(GuardShape); LIR_HEADER(GuardShape)
LGuardShape(const LAllocation &in) { LGuardShape(const LAllocation &in) {
setOperand(0, in); setOperand(0, in);
@ -166,7 +166,7 @@ class LGuardShape : public LInstructionHelper<0, 1, 0>
class LRecompileCheck : public LInstructionHelper<0, 0, 0> class LRecompileCheck : public LInstructionHelper<0, 0, 0>
{ {
public: public:
LIR_HEADER(RecompileCheck); LIR_HEADER(RecompileCheck)
const MRecompileCheck *mir() const { const MRecompileCheck *mir() const {
return mir_->toRecompileCheck(); return mir_->toRecompileCheck();
@ -176,13 +176,13 @@ class LRecompileCheck : public LInstructionHelper<0, 0, 0>
class LInterruptCheck : public LInstructionHelper<0, 0, 0> class LInterruptCheck : public LInstructionHelper<0, 0, 0>
{ {
public: public:
LIR_HEADER(InterruptCheck); LIR_HEADER(InterruptCheck)
}; };
class LMulI : public LBinaryMath<0, 1> class LMulI : public LBinaryMath<0, 1>
{ {
public: public:
LIR_HEADER(MulI); LIR_HEADER(MulI)
LMulI(const LAllocation &lhs, const LAllocation &rhs, const LAllocation &lhsCopy) { LMulI(const LAllocation &lhs, const LAllocation &rhs, const LAllocation &lhsCopy) {
setOperand(0, lhs); setOperand(0, lhs);

Просмотреть файл

@ -19,7 +19,7 @@ class LBox : public LInstructionHelper<1, 1, 0>
MIRType type_; MIRType type_;
public: public:
LIR_HEADER(Box); LIR_HEADER(Box)
LBox(MIRType type, const LAllocation &payload) LBox(MIRType type, const LAllocation &payload)
: type_(type) : type_(type)
@ -50,7 +50,7 @@ class LUnboxBase : public LInstructionHelper<1, 1, 0>
class LUnbox : public LUnboxBase { class LUnbox : public LUnboxBase {
public: public:
LIR_HEADER(Unbox); LIR_HEADER(Unbox)
LUnbox(const LAllocation &input) LUnbox(const LAllocation &input)
: LUnboxBase(input) : LUnboxBase(input)
@ -59,7 +59,7 @@ class LUnbox : public LUnboxBase {
class LUnboxDouble : public LUnboxBase { class LUnboxDouble : public LUnboxBase {
public: public:
LIR_HEADER(UnboxDouble); LIR_HEADER(UnboxDouble)
LUnboxDouble(const LAllocation &input) LUnboxDouble(const LAllocation &input)
: LUnboxBase(input) : LUnboxBase(input)
@ -72,7 +72,7 @@ class LDouble : public LInstructionHelper<1, 0, 0>
double d_; double d_;
public: public:
LIR_HEADER(Double); LIR_HEADER(Double)
LDouble(double d) LDouble(double d)
: d_(d) : d_(d)

Просмотреть файл

@ -51,7 +51,7 @@ class TaggedProto
template <> template <>
struct RootKind<TaggedProto> struct RootKind<TaggedProto>
{ {
static ThingRootKind rootKind() { return THING_ROOT_OBJECT; }; static ThingRootKind rootKind() { return THING_ROOT_OBJECT; }
}; };
template <> struct RootMethods<const TaggedProto> template <> struct RootMethods<const TaggedProto>

Просмотреть файл

@ -49,8 +49,8 @@ class JS_FRIEND_API(Wrapper) : public DirectProxyHandler
* is not safe to unwrap, operations requiring full access to the underlying * is not safe to unwrap, operations requiring full access to the underlying
* object (via UnwrapObjectChecked) will throw. Otherwise, they will succeed. * object (via UnwrapObjectChecked) will throw. Otherwise, they will succeed.
*/ */
void setSafeToUnwrap(bool safe) { mSafeToUnwrap = safe; }; void setSafeToUnwrap(bool safe) { mSafeToUnwrap = safe; }
bool isSafeToUnwrap() { return mSafeToUnwrap; }; bool isSafeToUnwrap() { return mSafeToUnwrap; }
static JSObject *New(JSContext *cx, JSObject *obj, JSObject *proto, static JSObject *New(JSContext *cx, JSObject *obj, JSObject *proto,
JSObject *parent, Wrapper *handler); JSObject *parent, Wrapper *handler);

Просмотреть файл

@ -826,7 +826,7 @@ class FrameState
#ifdef DEBUG #ifdef DEBUG
void assertValidRegisterState() const; void assertValidRegisterState() const;
#else #else
inline void assertValidRegisterState() const {}; inline void assertValidRegisterState() const {}
#endif #endif
// Return an address, relative to the StackFrame, that represents where // Return an address, relative to the StackFrame, that represents where

Просмотреть файл

@ -24,7 +24,7 @@ namespace xpc {
class ChromeObjectWrapper : public ChromeObjectWrapperBase class ChromeObjectWrapper : public ChromeObjectWrapperBase
{ {
public: public:
ChromeObjectWrapper() : ChromeObjectWrapperBase(0) {}; ChromeObjectWrapper() : ChromeObjectWrapperBase(0) {}
/* Custom traps. */ /* Custom traps. */
virtual bool getPropertyDescriptor(JSContext *cx, JSObject *wrapper, virtual bool getPropertyDescriptor(JSContext *cx, JSObject *wrapper,

Просмотреть файл

@ -66,7 +66,7 @@ private:
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS
NS_DECL_NSIDOMEVENTLISTENER NS_DECL_NSIDOMEVENTLISTENER
MouseListener(nsMathMLmactionFrame* aOwner) : mOwner(aOwner) { }; MouseListener(nsMathMLmactionFrame* aOwner) : mOwner(aOwner) { }
nsMathMLmactionFrame* mOwner; nsMathMLmactionFrame* mOwner;
}; };

Просмотреть файл

@ -240,7 +240,7 @@ protected:
NS_IMETHOD AttributeChanged(int32_t aNameSpaceID, NS_IMETHOD AttributeChanged(int32_t aNameSpaceID,
nsIAtom* aAttribute, nsIAtom* aAttribute,
int32_t aModType) MOZ_OVERRIDE; int32_t aModType) MOZ_OVERRIDE;
virtual ~nsMenuFrame() { }; virtual ~nsMenuFrame() { }
bool SizeToPopup(nsBoxLayoutState& aState, nsSize& aSize); bool SizeToPopup(nsBoxLayoutState& aState, nsSize& aSize);

Просмотреть файл

@ -79,7 +79,7 @@ class SocketTransportServiceTest : public ::testing::Test {
class EventReceived : public nsRunnable { class EventReceived : public nsRunnable {
public: public:
EventReceived(SocketTransportServiceTest *test) : EventReceived(SocketTransportServiceTest *test) :
test_(test) {}; test_(test) {}
NS_IMETHOD Run() { NS_IMETHOD Run() {
test_->ReceiveEvent(); test_->ReceiveEvent();
@ -94,7 +94,7 @@ public:
class RegisterEvent : public nsRunnable { class RegisterEvent : public nsRunnable {
public: public:
RegisterEvent(SocketTransportServiceTest *test) : RegisterEvent(SocketTransportServiceTest *test) :
test_(test) {}; test_(test) {}
NS_IMETHOD Run() { NS_IMETHOD Run() {
test_->RegisterHandler(); test_->RegisterHandler();

Просмотреть файл

@ -74,7 +74,7 @@ class TransportLayerLossy : public TransportLayer {
SignalPacketReceived(this, data, len); SignalPacketReceived(this, data, len);
} }
TRANSPORT_LAYER_ID("lossy"); TRANSPORT_LAYER_ID("lossy")
protected: protected:
virtual void WasInserted() { virtual void WasInserted() {

Просмотреть файл

@ -20,7 +20,7 @@ namespace CSF
CC_Call () { } CC_Call () { }
public: public:
virtual ~CC_Call () {}; virtual ~CC_Call () {}
virtual void setRemoteWindow (VideoWindowHandle window) = 0; virtual void setRemoteWindow (VideoWindowHandle window) = 0;

Просмотреть файл

@ -20,7 +20,7 @@ namespace CSF
CC_Device() {} CC_Device() {}
public: public:
virtual ~CC_Device() {}; virtual ~CC_Device() {}
virtual std::string toString() = 0; virtual std::string toString() = 0;

Просмотреть файл

@ -32,7 +32,7 @@ public:
NullTransport() {} NullTransport() {}
virtual ~NullTransport() {}; virtual ~NullTransport() {}
private: private:
NullTransport(const NullTransport& other) MOZ_DELETE; NullTransport(const NullTransport& other) MOZ_DELETE;

Просмотреть файл

@ -26,7 +26,7 @@ namespace mozilla {
class TransportInterface class TransportInterface
{ {
public: public:
virtual ~TransportInterface() {}; virtual ~TransportInterface() {}
/** /**
* RTP Transport Function to be implemented by concrete transport implementation * RTP Transport Function to be implemented by concrete transport implementation
@ -58,7 +58,7 @@ public:
class VideoRenderer class VideoRenderer
{ {
public: public:
virtual ~VideoRenderer() {} ; virtual ~VideoRenderer() {}
/** /**
* Callback Function reportng any change in the video-frame dimensions * Callback Function reportng any change in the video-frame dimensions
@ -106,7 +106,7 @@ class MediaSessionConduit
public: public:
enum Type { AUDIO, VIDEO } ; enum Type { AUDIO, VIDEO } ;
virtual ~MediaSessionConduit() {}; virtual ~MediaSessionConduit() {}
virtual Type type() const = 0; virtual Type type() const = 0;
@ -159,7 +159,7 @@ public:
*/ */
static RefPtr<VideoSessionConduit> Create(); static RefPtr<VideoSessionConduit> Create();
virtual ~VideoSessionConduit() {}; virtual ~VideoSessionConduit() {}
virtual Type type() const { return VIDEO; } virtual Type type() const { return VIDEO; }
@ -228,7 +228,7 @@ public:
*/ */
static mozilla::RefPtr<AudioSessionConduit> Create(); static mozilla::RefPtr<AudioSessionConduit> Create();
virtual ~AudioSessionConduit() {}; virtual ~AudioSessionConduit() {}
virtual Type type() const { return AUDIO; } virtual Type type() const { return AUDIO; }

Просмотреть файл

@ -118,8 +118,8 @@ public:
virtual int GetOutputVolumePan(int channel, float& left, float& right) = 0; virtual int GetOutputVolumePan(int channel, float& left, float& right) = 0;
protected: protected:
VoEVolumeControl() {}; VoEVolumeControl() {}
virtual ~VoEVolumeControl() {}; virtual ~VoEVolumeControl() {}
}; };
} // namespace webrtc } // namespace webrtc

Просмотреть файл

@ -55,7 +55,7 @@ public:
// nsISupports declaration // nsISupports declaration
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS
EndListener() {}; EndListener() {}
// nsIStreamListener method // nsIStreamListener method
NS_IMETHOD OnDataAvailable(nsIRequest* request, nsISupports *ctxt, nsIInputStream *inStr, NS_IMETHOD OnDataAvailable(nsIRequest* request, nsISupports *ctxt, nsIInputStream *inStr,

Просмотреть файл

@ -53,7 +53,7 @@ public:
*_retval = true; *_retval = true;
if (aPtr != this) *_retval = false; if (aPtr != this) *_retval = false;
return NS_OK; return NS_OK;
}; }
}; };
NS_IMPL_THREADSAFE_ISUPPORTS1(ConsumerContext, nsIEquals) NS_IMPL_THREADSAFE_ISUPPORTS1(ConsumerContext, nsIEquals)

Просмотреть файл

@ -60,7 +60,7 @@ public:
NS_IMETHOD Notify(nsIDOMHTMLFormElement* formNode, nsIDOMWindow* window, NS_IMETHOD Notify(nsIDOMHTMLFormElement* formNode, nsIDOMWindow* window,
nsIURI *actionURL, bool* cancelSubmit); nsIURI *actionURL, bool* cancelSubmit);
NS_IMETHOD NotifyInvalidSubmit(nsIDOMHTMLFormElement* formNode, NS_IMETHOD NotifyInvalidSubmit(nsIDOMHTMLFormElement* formNode,
nsIArray* invalidElements) { return NS_OK; }; nsIArray* invalidElements) { return NS_OK; }
protected: protected:
mozilla::ReentrantMonitor mReentrantMonitor; mozilla::ReentrantMonitor mReentrantMonitor;

Просмотреть файл

@ -26,7 +26,7 @@ public:
, mCert(aCert) , mCert(aCert)
{} {}
virtual ~nsCertificatePrincipal() {}; virtual ~nsCertificatePrincipal() {}
private: private:
nsCString mFingerprint; nsCString mFingerprint;

Просмотреть файл

@ -26,7 +26,7 @@ class nsMediaSniffer MOZ_FINAL : public nsIContentSniffer
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS
NS_DECL_NSICONTENTSNIFFER NS_DECL_NSICONTENTSNIFFER
protected: protected:
~nsMediaSniffer() {}; ~nsMediaSniffer() {}
#define PATTERN_ENTRY(mask, pattern, contentType) \ #define PATTERN_ENTRY(mask, pattern, contentType) \
{(const uint8_t*)mask, (const uint8_t*)pattern, sizeof(mask) - 1, contentType} {(const uint8_t*)mask, (const uint8_t*)pattern, sizeof(mask) - 1, contentType}

Просмотреть файл

@ -58,9 +58,9 @@ public:
*/ */
nsresult MarkSpoiled(nsTArray<nsCString>& aTables); nsresult MarkSpoiled(nsTArray<nsCString>& aTables);
nsresult CacheCompletions(const CacheResultArray& aResults); nsresult CacheCompletions(const CacheResultArray& aResults);
uint32_t GetHashKey(void) { return mHashKey; }; uint32_t GetHashKey(void) { return mHashKey; }
void SetFreshTime(uint32_t aTime) { mFreshTime = aTime; }; void SetFreshTime(uint32_t aTime) { mFreshTime = aTime; }
void SetPerClientRandomize(bool aRandomize) { mPerClientRandomize = aRandomize; }; void SetPerClientRandomize(bool aRandomize) { mPerClientRandomize = aRandomize; }
/* /*
* Get a bunch of extra prefixes to query for completion * Get a bunch of extra prefixes to query for completion
* and mask the real entry being requested * and mask the real entry being requested

Просмотреть файл

@ -45,8 +45,8 @@ public:
void NewAddComplete(uint32_t aChunk, const Completion& aCompletion); void NewAddComplete(uint32_t aChunk, const Completion& aCompletion);
void NewSubComplete(uint32_t aAddChunk, const Completion& aCompletion, void NewSubComplete(uint32_t aAddChunk, const Completion& aCompletion,
uint32_t aSubChunk); uint32_t aSubChunk);
void SetLocalUpdate(void) { mLocalUpdate = true; }; void SetLocalUpdate(void) { mLocalUpdate = true; }
bool IsLocalUpdate(void) { return mLocalUpdate; }; bool IsLocalUpdate(void) { return mLocalUpdate; }
ChunkSet& AddChunks() { return mAddChunks; } ChunkSet& AddChunks() { return mAddChunks; }
ChunkSet& SubChunks() { return mSubChunks; } ChunkSet& SubChunks() { return mSubChunks; }
@ -79,7 +79,7 @@ public:
HashStore(const nsACString& aTableName, nsIFile* aStoreFile); HashStore(const nsACString& aTableName, nsIFile* aStoreFile);
~HashStore(); ~HashStore();
const nsCString& TableName() const { return mTableName; }; const nsCString& TableName() const { return mTableName; }
nsresult Open(); nsresult Open();
nsresult AugmentAdds(const nsTArray<uint32_t>& aPrefixes); nsresult AugmentAdds(const nsTArray<uint32_t>& aPrefixes);

Просмотреть файл

@ -37,7 +37,7 @@ class nsPrefixSetReporter : public nsIMemoryReporter
{ {
public: public:
nsPrefixSetReporter(nsUrlClassifierPrefixSet* aParent, const nsACString& aName); nsPrefixSetReporter(nsUrlClassifierPrefixSet* aParent, const nsACString& aName);
virtual ~nsPrefixSetReporter() {}; virtual ~nsPrefixSetReporter() {}
NS_DECL_ISUPPORTS NS_DECL_ISUPPORTS
NS_DECL_NSIMEMORYREPORTER NS_DECL_NSIMEMORYREPORTER

Просмотреть файл

@ -84,7 +84,7 @@ public:
NS_DECL_NSIGSETTINGSCOLLECTION NS_DECL_NSIGSETTINGSCOLLECTION
nsGSettingsCollection(GSettings* aSettings) : mSettings(aSettings), nsGSettingsCollection(GSettings* aSettings) : mSettings(aSettings),
mKeys(NULL) {}; mKeys(NULL) {}
~nsGSettingsCollection(); ~nsGSettingsCollection();
private: private:

Просмотреть файл

@ -12,14 +12,14 @@
class TestObjectBaseA { class TestObjectBaseA {
public: public:
// Virtual dtor for deleting through base class pointer // Virtual dtor for deleting through base class pointer
virtual ~TestObjectBaseA() { }; virtual ~TestObjectBaseA() { }
int fooA; int fooA;
}; };
class TestObjectBaseB { class TestObjectBaseB {
public: public:
// Virtual dtor for deleting through base class pointer // Virtual dtor for deleting through base class pointer
virtual ~TestObjectBaseB() { }; virtual ~TestObjectBaseB() { }
int fooB; int fooB;
}; };

Просмотреть файл

@ -72,7 +72,7 @@ public:
EntityToUnicodeEntry(const char* aKey) { mNode = nullptr; } EntityToUnicodeEntry(const char* aKey) { mNode = nullptr; }
EntityToUnicodeEntry(const EntityToUnicodeEntry& aEntry) { mNode = aEntry.mNode; } EntityToUnicodeEntry(const EntityToUnicodeEntry& aEntry) { mNode = aEntry.mNode; }
~EntityToUnicodeEntry() { }; ~EntityToUnicodeEntry() { }
bool KeyEquals(const char* aEntity) const { return !strcmp(mNode->mStr, aEntity); } bool KeyEquals(const char* aEntity) const { return !strcmp(mNode->mStr, aEntity); }
static const char* KeyToPointer(const char* aEntity) { return aEntity; } static const char* KeyToPointer(const char* aEntity) { return aEntity; }

Просмотреть файл

@ -85,13 +85,13 @@ public:
} }
callbackCount--; callbackCount--;
return NS_OK; return NS_OK;
}; }
NS_IMETHOD HandleError(const nsAString &name) { NS_IMETHOD HandleError(const nsAString &name) {
fprintf(stderr, "HANDLE Error! %s\n", NS_LossyConvertUTF16toASCII(name).get()); fprintf(stderr, "HANDLE Error! %s\n", NS_LossyConvertUTF16toASCII(name).get());
errors++; errors++;
return NS_OK; return NS_OK;
}; }
}; };
NS_IMPL_THREADSAFE_ISUPPORTS1(SettingsServiceCallback, nsISettingsServiceCallback) NS_IMPL_THREADSAFE_ISUPPORTS1(SettingsServiceCallback, nsISettingsServiceCallback)