зеркало из https://github.com/mozilla/gecko-dev.git
Bug 911806 - Disable assignment operator and copy constructor of CompileError. r=billm
This commit is contained in:
Родитель
cad644ddfe
Коммит
c50020859b
|
@ -317,6 +317,12 @@ struct CompileError {
|
|||
}
|
||||
~CompileError();
|
||||
void throwError(JSContext *cx);
|
||||
|
||||
private:
|
||||
// CompileError owns raw allocated memory, so disable assignment and copying
|
||||
// for safety.
|
||||
void operator=(const CompileError &) MOZ_DELETE;
|
||||
CompileError(const CompileError &) MOZ_DELETE;
|
||||
};
|
||||
|
||||
// Ideally, tokenizing would be entirely independent of context. But the
|
||||
|
|
Загрузка…
Ссылка в новой задаче