Skip to content

Commit

Permalink
build: Declare creation methods of abstract classes as protected
Browse files Browse the repository at this point in the history
Public creation methods of abstract classes are no longer allowed
since 0.45.1:
https://gitlab.gnome.org/GNOME/vala/commit/9365176e3f4fab737112e957f38c128752c8b504

Suggested by Rico Tzschichholz.
  • Loading branch information
ueno committed Aug 9, 2019
1 parent ba1c1bd commit 84f46d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libkkc/language-model.vala
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ namespace Kkc {
public abstract new LanguageModelEntry? @get (string input,
string output);

public LanguageModel (LanguageModelMetadata metadata) throws Error {
protected LanguageModel (LanguageModelMetadata metadata) throws Error {
Object (metadata: metadata);
init (null);
}
Expand Down
2 changes: 1 addition & 1 deletion libkkc/metadata-file.vala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace Kkc {
*/
public string filename { get; construct set; }

public MetadataFile (string name, string filename) throws Error {
protected MetadataFile (string name, string filename) throws Error {
Object (name: name, filename: filename);
init (null);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/test-case.vala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public abstract class Kkc.TestCase : Object

public delegate void TestMethod ();

public TestCase (string name)
protected TestCase (string name)
{
this._suite = new GLib.TestSuite (name);
}
Expand Down

0 comments on commit 84f46d6

Please sign in to comment.