[rygel] core: No need for 'construct'



commit 6458ae821431f14b235d2bad6cd4be56c0c5a17a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Jan 7 16:34:46 2010 +0200

    core: No need for 'construct'

 src/rygel/rygel-search-criteria-parser.vala |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/rygel/rygel-search-criteria-parser.vala b/src/rygel/rygel-search-criteria-parser.vala
index a7d0a7e..bfb706c 100644
--- a/src/rygel/rygel-search-criteria-parser.vala
+++ b/src/rygel/rygel-search-criteria-parser.vala
@@ -70,7 +70,8 @@ internal class Rygel.SearchCriteriaParser : Object, StateMachine {
         { "false",          (int) Symbol.FALSE }
     };
 
-    construct  {
+    public SearchCriteriaParser (string str) throws Error {
+        this.str = str;
         scanner = new Scanner (null);
         scanner.config.cset_skip_characters = " \t\n\r\012" +
                                               "\013\014\015";
@@ -90,10 +91,6 @@ internal class Rygel.SearchCriteriaParser : Object, StateMachine {
         }
     }
 
-    public SearchCriteriaParser (string str) throws Error {
-        this.str = str;
-    }
-
     // This implementation is not really async
     public async void run () {
         if (this.str == "*") {



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