Bug 1119257 - Mark virtual overridden functions as MOZ_OVERRIDE in rdf; r=bsmedberg

This commit is contained in:
Ehsan Akhgari 2015-01-08 10:13:50 -05:00
Родитель 8b01d6e6f0
Коммит aa7a06d2bb
2 изменённых файлов: 12 добавлений и 12 удалений

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

@ -66,35 +66,35 @@ public:
NS_DECL_ISUPPORTS
// nsIOutputStream interface
NS_IMETHOD Close(void) {
NS_IMETHOD Close(void) MOZ_OVERRIDE {
return NS_OK;
}
NS_IMETHOD Write(const char* aBuf, uint32_t aCount, uint32_t *aWriteCount) {
NS_IMETHOD Write(const char* aBuf, uint32_t aCount, uint32_t *aWriteCount) MOZ_OVERRIDE {
PR_Write(PR_GetSpecialFD(PR_StandardOutput), aBuf, aCount);
*aWriteCount = aCount;
return NS_OK;
}
NS_IMETHOD
WriteFrom(nsIInputStream *inStr, uint32_t count, uint32_t *_retval) {
WriteFrom(nsIInputStream *inStr, uint32_t count, uint32_t *_retval) MOZ_OVERRIDE {
NS_NOTREACHED("WriteFrom");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHOD
WriteSegments(nsReadSegmentFun reader, void * closure, uint32_t count, uint32_t *_retval) {
WriteSegments(nsReadSegmentFun reader, void * closure, uint32_t count, uint32_t *_retval) MOZ_OVERRIDE {
NS_NOTREACHED("WriteSegments");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHOD
IsNonBlocking(bool *aNonBlocking) {
IsNonBlocking(bool *aNonBlocking) MOZ_OVERRIDE {
NS_NOTREACHED("IsNonBlocking");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHOD Flush(void) {
NS_IMETHOD Flush(void) MOZ_OVERRIDE {
PR_Sync(PR_GetSpecialFD(PR_StandardOutput));
return NS_OK;
}

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

@ -64,35 +64,35 @@ public:
NS_DECL_ISUPPORTS
// nsIOutputStream interface
NS_IMETHOD Close(void) {
NS_IMETHOD Close(void) MOZ_OVERRIDE {
return NS_OK;
}
NS_IMETHOD Write(const char* aBuf, uint32_t aCount, uint32_t *aWriteCount) {
NS_IMETHOD Write(const char* aBuf, uint32_t aCount, uint32_t *aWriteCount) MOZ_OVERRIDE {
PR_Write(PR_GetSpecialFD(PR_StandardOutput), aBuf, aCount);
*aWriteCount = aCount;
return NS_OK;
}
NS_IMETHOD
WriteFrom(nsIInputStream *inStr, uint32_t count, uint32_t *_retval) {
WriteFrom(nsIInputStream *inStr, uint32_t count, uint32_t *_retval) MOZ_OVERRIDE {
NS_NOTREACHED("WriteFrom");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHOD
WriteSegments(nsReadSegmentFun reader, void * closure, uint32_t count, uint32_t *_retval) {
WriteSegments(nsReadSegmentFun reader, void * closure, uint32_t count, uint32_t *_retval) MOZ_OVERRIDE {
NS_NOTREACHED("WriteSegments");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHOD
IsNonBlocking(bool *aNonBlocking) {
IsNonBlocking(bool *aNonBlocking) MOZ_OVERRIDE {
NS_NOTREACHED("IsNonBlocking");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHOD Flush(void) {
NS_IMETHOD Flush(void) MOZ_OVERRIDE {
PR_Sync(PR_GetSpecialFD(PR_StandardOutput));
return NS_OK;
}