Port bug 1570982 - remove CPP_THROW_NEW. rs=bustage-fix

This commit is contained in:
Jorg K 2019-08-15 00:34:51 +02:00
Родитель 2808f2d37b
Коммит 6fbeb5b79d
7 изменённых файлов: 11 добавлений и 12 удалений

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

@ -56,7 +56,7 @@ class morkNext /*d*/ {
public: // link memory management operators public: // link memory management operators
void* operator new(size_t inSize, nsIMdbHeap& ioHeap, void* operator new(size_t inSize, nsIMdbHeap& ioHeap,
morkEnv* ev) CPP_THROW_NEW { morkEnv* ev) noexcept(true) {
return morkNext::MakeNewNext(inSize, ioHeap, ev); return morkNext::MakeNewNext(inSize, ioHeap, ev);
} }
@ -153,7 +153,7 @@ class morkLink /*d*/ {
public: // link memory management operators public: // link memory management operators
void* operator new(size_t inSize, nsIMdbHeap& ioHeap, void* operator new(size_t inSize, nsIMdbHeap& ioHeap,
morkEnv* ev) CPP_THROW_NEW { morkEnv* ev) noexcept(true) {
return morkLink::MakeNewLink(inSize, ioHeap, ev); return morkLink::MakeNewLink(inSize, ioHeap, ev);
} }
}; };

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

@ -172,12 +172,12 @@ class morkFactory : public morkObject, public nsIMdbFactory { // nsIMdbObject
void CloseFactory(morkEnv* ev); // called by CloseMorkNode(); void CloseFactory(morkEnv* ev); // called by CloseMorkNode();
public: // morkNode memory management operators public: // morkNode memory management operators
void* operator new(size_t inSize) CPP_THROW_NEW { void* operator new(size_t inSize) noexcept(true) {
return ::operator new(inSize); return ::operator new(inSize);
} }
void* operator new(size_t inSize, nsIMdbHeap& ioHeap, void* operator new(size_t inSize, nsIMdbHeap& ioHeap,
morkEnv* ev) CPP_THROW_NEW { morkEnv* ev) noexcept(true) {
return morkNode::MakeNew(inSize, ioHeap, ev); return morkNode::MakeNew(inSize, ioHeap, ev);
} }

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

@ -85,16 +85,16 @@ class morkHandle : public morkNode {
public: // morkHandle memory management operators public: // morkHandle memory management operators
void* operator new(size_t inSize, morkPool& ioPool, morkZone& ioZone, void* operator new(size_t inSize, morkPool& ioPool, morkZone& ioZone,
morkEnv* ev) CPP_THROW_NEW { morkEnv* ev) noexcept(true) {
return ioPool.NewHandle(ev, inSize, &ioZone); return ioPool.NewHandle(ev, inSize, &ioZone);
} }
void* operator new(size_t inSize, morkPool& ioPool, void* operator new(size_t inSize, morkPool& ioPool,
morkEnv* ev) CPP_THROW_NEW { morkEnv* ev) noexcept(true) {
return ioPool.NewHandle(ev, inSize, (morkZone*)0); return ioPool.NewHandle(ev, inSize, (morkZone*)0);
} }
void* operator new(size_t inSize, morkHandleFace* ioFace) CPP_THROW_NEW { void* operator new(size_t inSize, morkHandleFace* ioFace) noexcept(true) {
MORK_USED_1(inSize); MORK_USED_1(inSize);
return ioFace; return ioFace;
} }

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

@ -154,7 +154,7 @@ class morkNode /*: public nsISupports */ { // base class for constructing Mork
public: // morkNode memory management operators public: // morkNode memory management operators
void* operator new(size_t inSize, nsIMdbHeap& ioHeap, void* operator new(size_t inSize, nsIMdbHeap& ioHeap,
morkEnv* ev) CPP_THROW_NEW { morkEnv* ev) noexcept(true) {
return morkNode::MakeNew(inSize, ioHeap, ev); return morkNode::MakeNew(inSize, ioHeap, ev);
} }

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

@ -86,11 +86,11 @@ class morkPool : public morkNode {
public: // morkNode memory management operators public: // morkNode memory management operators
void* operator new(size_t inSize, nsIMdbHeap& ioHeap, void* operator new(size_t inSize, nsIMdbHeap& ioHeap,
morkEnv* ev) CPP_THROW_NEW { morkEnv* ev) noexcept(true) {
return morkNode::MakeNew(inSize, ioHeap, ev); return morkNode::MakeNew(inSize, ioHeap, ev);
} }
void* operator new(size_t inSize) CPP_THROW_NEW { void* operator new(size_t inSize) noexcept(true) {
return ::operator new(inSize); return ::operator new(inSize);
} }

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

@ -479,7 +479,7 @@ class morkTable : public morkObject, public morkLink, public nsIMdbTable {
public: // morkNode memory management operators public: // morkNode memory management operators
void* operator new(size_t inSize, nsIMdbHeap& ioHeap, void* operator new(size_t inSize, nsIMdbHeap& ioHeap,
morkEnv* ev) CPP_THROW_NEW { morkEnv* ev) noexcept(true) {
return morkNode::MakeNew(inSize, ioHeap, ev); return morkNode::MakeNew(inSize, ioHeap, ev);
} }

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

@ -26,7 +26,6 @@
*/ */
#include "xpcom-config.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsIComponentManager.h" #include "nsIComponentManager.h"
#include "nsIRDFCompositeDataSource.h" #include "nsIRDFCompositeDataSource.h"