[vala/0.10] vapigen: Replace use of string.len () by string.length
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.10] vapigen: Replace use of string.len () by string.length
- Date: Sat, 21 Aug 2010 09:16:38 +0000 (UTC)
commit 29553b5a4f38d76ce10fcab7a70e320aad47e83b
Author: Jürg Billeter <j bitron ch>
Date: Fri Aug 20 20:42:39 2010 +0200
vapigen: Replace use of string.len () by string.length
vapigen/valavapicheck.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vapigen/valavapicheck.vala b/vapigen/valavapicheck.vala
index a59b010..4a98c96 100644
--- a/vapigen/valavapicheck.vala
+++ b/vapigen/valavapicheck.vala
@@ -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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]