Skip to content

Commit

Permalink
Declare missing constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed May 17, 2024
1 parent 582ec8b commit e9fabce
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion Core/GDCore/Events/CodeGeneration/DiagnosticReport.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class GD_CORE_API ProjectDiagnostic {
const gd::String &expectedValue_, const gd::String &objectName_)
: type(type_), message(message_), actualValue(actualValue_), expectedValue(expectedValue_),
objectName(objectName_){};
ProjectDiagnostic() : type(ErrorType::UndeclaredVariable) {};
virtual ~ProjectDiagnostic(){};

ErrorType GetType() const { return type; };
Expand Down
1 change: 1 addition & 0 deletions GDevelop.js/Bindings/Bindings.idl
Original file line number Diff line number Diff line change
Expand Up @@ -2535,6 +2535,7 @@ interface ProjectDiagnostic {
};

interface DiagnosticReport {
void DiagnosticReport();
[Const, Ref] ProjectDiagnostic Get(unsigned long index);
unsigned long Count();
[Const, Ref] DOMString GetSceneName();
Expand Down
1 change: 1 addition & 0 deletions GDevelop.js/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1925,6 +1925,7 @@ export class ProjectDiagnostic extends EmscriptenObject {
}

export class DiagnosticReport extends EmscriptenObject {
constructor();
get(index: number): ProjectDiagnostic;
count(): number;
getSceneName(): string;
Expand Down
1 change: 1 addition & 0 deletions GDevelop.js/types/gddiagnosticreport.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Automatically generated by GDevelop.js/scripts/generate-types.js
declare class gdDiagnosticReport {
constructor(): void;
get(index: number): gdProjectDiagnostic;
count(): number;
getSceneName(): string;
Expand Down

0 comments on commit e9fabce

Please sign in to comment.