mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
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:
parent
834a627f02
commit
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user