From 48c2e7afa497acc2e75cf5673d0dcdaa8ba638a7 Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Sun, 1 Sep 2019 12:37:46 -0400 Subject: [PATCH] Do not mark abstract class contstuctors public Starting with Vala 0.45.1, it is an error to mark abstract class constructors public[0,1]. This commit removes three such declarations. fixes #609 [0] https://gitlab.gnome.org/GNOME/vala/raw/master/NEWS [1] https://gitlab.gnome.org/GNOME/vala/issues/766 Signed-off-by: Randy Barlow --- libdino/src/service/content_item_store.vala | 2 +- qlite/src/column.vala | 4 ++-- qlite/src/statement_builder.vala | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libdino/src/service/content_item_store.vala b/libdino/src/service/content_item_store.vala index 3800f35de..7baba1fdc 100644 --- a/libdino/src/service/content_item_store.vala +++ b/libdino/src/service/content_item_store.vala @@ -207,7 +207,7 @@ public abstract class ContentItem : Object { public Encryption? encryption { get; set; default=null; } public Entities.Message.Marked? mark { get; set; default=null; } - public ContentItem(int id, string ty, Jid jid, DateTime sort_time, DateTime display_time, Encryption encryption, Entities.Message.Marked mark) { + ContentItem(int id, string ty, Jid jid, DateTime sort_time, DateTime display_time, Encryption encryption, Entities.Message.Marked mark) { this.id = id; this.type_ = ty; this.jid = jid; diff --git a/qlite/src/column.vala b/qlite/src/column.vala index daa6a59f2..60125ddf0 100644 --- a/qlite/src/column.vala +++ b/qlite/src/column.vala @@ -55,7 +55,7 @@ public abstract class Column { return res; } - public Column(string name, int type) { + Column(string name, int type) { this.name = name; this.sqlite_type = type; } @@ -185,4 +185,4 @@ public abstract class Column { } } -} \ No newline at end of file +} diff --git a/qlite/src/statement_builder.vala b/qlite/src/statement_builder.vala index f4dac1219..dca6983ed 100644 --- a/qlite/src/statement_builder.vala +++ b/qlite/src/statement_builder.vala @@ -15,7 +15,7 @@ public abstract class StatementBuilder { public T value; public Column? column; - public AbstractField(T value) { + AbstractField(T value) { this.value = value; }