Skip to content

Commit

Permalink
Bug 1119256 - Mark virtual overridden functions as MOZ_OVERRIDE in ne…
Browse files Browse the repository at this point in the history
…twerk; r=jduell
  • Loading branch information
ehsan committed Jan 14, 2015
1 parent 3606c8b commit ea2e039
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion netwerk/sctp/datachannel/DataChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class DataChannelShutdown : public nsIObserver

public:
NS_IMETHODIMP Observe(nsISupports* aSubject, const char* aTopic,
const char16_t* aData) {
const char16_t* aData) MOZ_OVERRIDE {
if (strcmp(aTopic, "profile-change-net-teardown") == 0) {
LOG(("Shutting down SCTP"));
if (sctp_initialized) {
Expand Down
4 changes: 2 additions & 2 deletions netwerk/streamconv/test/Converters.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class TestConverter : public nsIStreamConverter {

// nsIStreamConverter methods
NS_IMETHOD Convert(nsIInputStream *aFromStream, const char *aFromType,
const char *aToType, nsISupports *ctxt, nsIInputStream **_retval);
const char *aToType, nsISupports *ctxt, nsIInputStream **_retval) MOZ_OVERRIDE;


NS_IMETHOD AsyncConvertData(const char *aFromType, const char *aToType,
nsIStreamListener *aListener, nsISupports *ctxt);
nsIStreamListener *aListener, nsISupports *ctxt) MOZ_OVERRIDE;

// member data
nsCOMPtr<nsIStreamListener> mListener;
Expand Down
6 changes: 3 additions & 3 deletions netwerk/streamconv/test/TestStreamConv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class EndListener MOZ_FINAL : public nsIStreamListener {

// nsIStreamListener method
NS_IMETHOD OnDataAvailable(nsIRequest* request, nsISupports *ctxt, nsIInputStream *inStr,
uint64_t sourceOffset, uint32_t count)
uint64_t sourceOffset, uint32_t count) MOZ_OVERRIDE
{
nsresult rv;
uint32_t read;
Expand All @@ -81,10 +81,10 @@ class EndListener MOZ_FINAL : public nsIStreamListener {
}

// nsIRequestObserver methods
NS_IMETHOD OnStartRequest(nsIRequest* request, nsISupports *ctxt) { return NS_OK; }
NS_IMETHOD OnStartRequest(nsIRequest* request, nsISupports *ctxt) MOZ_OVERRIDE { return NS_OK; }

NS_IMETHOD OnStopRequest(nsIRequest* request, nsISupports *ctxt,
nsresult aStatus) { return NS_OK; }
nsresult aStatus) MOZ_OVERRIDE { return NS_OK; }
};

NS_IMPL_ISUPPORTS(EndListener,
Expand Down
2 changes: 1 addition & 1 deletion netwerk/test/TestCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ConsumerContext MOZ_FINAL : public nsIEquals {

ConsumerContext() { }

NS_IMETHOD Equals(void *aPtr, bool *_retval) {
NS_IMETHOD Equals(void *aPtr, bool *_retval) MOZ_OVERRIDE {
*_retval = true;
if (aPtr != this) *_retval = false;
return NS_OK;
Expand Down
2 changes: 1 addition & 1 deletion netwerk/test/TestCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class nsQuitPumpingEvent MOZ_FINAL : public nsIRunnable {
~nsQuitPumpingEvent() {}
public:
NS_DECL_THREADSAFE_ISUPPORTS
NS_IMETHOD Run() {
NS_IMETHOD Run() MOZ_OVERRIDE {
gKeepPumpingEvents = false;
return NS_OK;
}
Expand Down
2 changes: 1 addition & 1 deletion netwerk/test/TestDNS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class myDNSListener : public nsIDNSListener

NS_IMETHOD OnLookupComplete(nsICancelable *request,
nsIDNSRecord *rec,
nsresult status)
nsresult status) MOZ_OVERRIDE
{
printf("%d: OnLookupComplete called [host=%s status=%x rec=%p]\n",
mIndex, mHost.get(), static_cast<uint32_t>(status), (void*)rec);
Expand Down
2 changes: 1 addition & 1 deletion netwerk/test/TestProtocols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ class NotificationCallbacks MOZ_FINAL : public nsIInterfaceRequestor {
NotificationCallbacks() {
}

NS_IMETHOD GetInterface(const nsIID& iid, void* *result) {
NS_IMETHOD GetInterface(const nsIID& iid, void* *result) MOZ_OVERRIDE {
nsresult rv = NS_ERROR_FAILURE;

if (iid.Equals(NS_GET_IID(nsIChannelEventSink))) {
Expand Down

0 comments on commit ea2e039

Please sign in to comment.