[folks] Constructors of abstract classes should not be public



commit 38ac367c332063404ec6c9404511fdb41f6d5946
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Mar 15 00:05:18 2019 +0100

    Constructors of abstract classes should not be public

 tests/lib/test-case.vala   | 2 +-
 tools/inspect/inspect.vala | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/lib/test-case.vala b/tests/lib/test-case.vala
index cfed5219..3b60e988 100644
--- a/tests/lib/test-case.vala
+++ b/tests/lib/test-case.vala
@@ -39,7 +39,7 @@ public abstract class Folks.TestCase : Object
   private GLib.TestSuite _suite;
   public delegate void TestMethod ();
 
-  public TestCase (string name)
+  protected TestCase (string name)
     {
       Intl.setlocale (LocaleCategory.ALL, "");
 
diff --git a/tools/inspect/inspect.vala b/tools/inspect/inspect.vala
index ecc7a95b..4bbf8ab6 100644
--- a/tools/inspect/inspect.vala
+++ b/tools/inspect/inspect.vala
@@ -601,7 +601,7 @@ public abstract class Folks.Inspect.Command
 {
   protected Client client;
 
-  public Command (Client client)
+  protected Command (Client client)
     {
       this.client = client;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]