diff options
author | Jürg Billeter <j@bitron.ch> | 2010-08-20 20:04:59 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-08-20 20:06:49 +0200 |
commit | 4eaa435417536b9ae380dec9894ad0af513ae6d4 (patch) | |
tree | 7c934e1bef9a8859e539dbcf58b2aa34b7fcfdc7 /compiler/valacompiler.vala | |
parent | 9d947dfff41159302f357cd1710f0c0bd4aca6a7 (diff) | |
download | vala-4eaa435417536b9ae380dec9894ad0af513ae6d4.tar.gz |
glib-2.0: Deprecate string.len () in favor of string.length
Diffstat (limited to 'compiler/valacompiler.vala')
-rw-r--r-- | compiler/valacompiler.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 70eb722cb..0e313a43d 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -460,7 +460,7 @@ class Vala.Compiler { if (library != null) { if (gir != null) { if (context.profile == Profile.GOBJECT) { - long gir_len = gir.len (); + long gir_len = gir.length; unowned string? last_hyphen = gir.rchr (gir_len, '-'); if (last_hyphen == null || !gir.has_suffix (".gir")) { @@ -541,7 +541,7 @@ class Vala.Compiler { } private static bool ends_with_dir_separator (string s) { - return Path.is_dir_separator (s.offset (s.len () - 1).get_char ()); + return Path.is_dir_separator (s.offset (s.length - 1).get_char ()); } /* ported from glibc */ @@ -586,9 +586,9 @@ class Vala.Compiler { // do nothing } else if (len == 2 && start.has_prefix ("..")) { // back up to previous component, ignore if at root already - if (rpath.len () > root_len) { + if (rpath.length > root_len) { do { - rpath = rpath.substring (0, rpath.len () - 1); + rpath = rpath.substring (0, rpath.length - 1); } while (!ends_with_dir_separator (rpath)); } } else { @@ -600,8 +600,8 @@ class Vala.Compiler { } } - if (rpath.len () > root_len && ends_with_dir_separator (rpath)) { - rpath = rpath.substring (0, rpath.len () - 1); + if (rpath.length > root_len && ends_with_dir_separator (rpath)) { + rpath = rpath.substring (0, rpath.length - 1); } if (Path.DIR_SEPARATOR != '/') { |