aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Barlow <randy@electronsweatshop.com>2019-09-01 12:37:46 -0400
committerfiaxh <fiaxh@users.noreply.github.com>2019-09-01 21:19:09 +0200
commit48c2e7afa497acc2e75cf5673d0dcdaa8ba638a7 (patch)
treee52130d9d5c3c2e2e922e2d6529eea7cbdc958a9
parent016ab2c19b0760792f3ea8f00bfc46b49500f96a (diff)
downloaddino-48c2e7afa497acc2e75cf5673d0dcdaa8ba638a7.tar.gz
dino-48c2e7afa497acc2e75cf5673d0dcdaa8ba638a7.zip
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 <randy@electronsweatshop.com>
-rw-r--r--libdino/src/service/content_item_store.vala2
-rw-r--r--qlite/src/column.vala4
-rw-r--r--qlite/src/statement_builder.vala2
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 3800f35d..7baba1fd 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 daa6a59f..60125ddf 100644
--- a/qlite/src/column.vala
+++ b/qlite/src/column.vala
@@ -55,7 +55,7 @@ public abstract class Column<T> {
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<T> {
}
}
-} \ No newline at end of file
+}
diff --git a/qlite/src/statement_builder.vala b/qlite/src/statement_builder.vala
index f4dac121..dca6983e 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<T>? column;
- public AbstractField(T value) {
+ AbstractField(T value) {
this.value = value;
}