]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: Replace use of string.len () by string.length
authorJürg Billeter <j@bitron.ch>
Fri, 20 Aug 2010 18:42:39 +0000 (20:42 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 4 Sep 2010 14:57:26 +0000 (16:57 +0200)
vapigen/valavapicheck.vala

index a59b010e2650ca77fdf8c24ae1ad0e45196d3a0f..4a98c96802b4d9b3e39299e75cb8cbfa6ff34be6 100644 (file)
@@ -25,7 +25,7 @@ using GLib;
 class Vala.VAPICheck : Object {
        public VAPICheck (string gidlname, CodeContext context = new CodeContext ()) {
                gidl = new SourceFile (context, gidlname);
-               metadata = new SourceFile (context, gidlname.substring (0, gidlname.len () - 5) + ".metadata");
+               metadata = new SourceFile (context, gidlname.substring (0, gidlname.length - 5) + ".metadata");
                this.context = context;
        }
 
@@ -137,7 +137,7 @@ class Vala.VAPICheck : Object {
                                var symbol = tokens[0];
 
                                if (symbol.size () > 0 && !_symbols.contains (symbol)) {
-                                       var src = new SourceReference (metadata, lineno, 1, lineno, (int)symbol.len ());
+                                       var src = new SourceReference (metadata, lineno, 1, lineno, (int)symbol.length);
                                        Report.error (src, "Symbol `%s' not found".printf (symbol));
                                }