зеркало из https://github.com/mozilla/gecko-dev.git
Bug 754457. Disallow copy-construction of ErrorResult, so it can only be passed by reference, not by value. r=peterv
This commit is contained in:
Родитель
834a627f02
Коммит
79bf4de9af
|
@ -47,6 +47,10 @@ public:
|
|||
|
||||
private:
|
||||
nsresult mResult;
|
||||
|
||||
// Not to be implemented, to make sure people always pass this by
|
||||
// reference, not by value.
|
||||
ErrorResult(const ErrorResult&) MOZ_DELETE;
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
|
Загрузка…
Ссылка в новой задаче