Showing the changes to libraries/script-engine/src/ScriptProgram.h (1 of 18 files). Show all
Unified · Split
| @@ -28,6 +28,9 @@ public: · 27 unmodified lines | ||
| 28 | 28 | virtual ScriptSyntaxCheckResultPointer checkSyntax() const = 0; |
| 29 | 29 | virtual QString fileName() const = 0; |
| 30 | 30 | virtual QString sourceCode() const = 0; |
| 31 | + | |
| 32 | +protected: | |
| 33 | + ~ScriptProgram() {} // prevent explicit deletion of base class | |
| 31 | 34 | }; |
| 32 | 35 | |
| 33 | 36 | /// [ScriptInterface] Provides an engine-independent interface for QScriptSyntaxCheckResult |
| @@ -45,6 +48,9 @@ public: · 11 unmodified lines | ||
| 45 | 48 | virtual int errorLineNumber() const = 0; |
| 46 | 49 | virtual QString errorMessage() const = 0; |
| 47 | 50 | virtual State state() const = 0; |
| 51 | + | |
| 52 | +protected: | |
| 53 | + ~ScriptSyntaxCheckResult() {} // prevent explicit deletion of base class | |
| 48 | 54 | }; |
| 49 | 55 | |
| 50 | 56 | #endif // hifi_ScriptProgram_h |