[vala] avahi-gobject: Use string.length instead of deprecated string.size()
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] avahi-gobject: Use string.length instead of deprecated string.size()
- Date: Sat, 23 Apr 2011 15:01:48 +0000 (UTC)
commit 6cf463f87e884b0a94493e9ba15d97e13cf3273c
Author: Daniel Svensson <dsvensson gmail com>
Date: Sun Jan 23 23:06:06 2011 +0100
avahi-gobject: Use string.length instead of deprecated string.size()
Fixes bug 648506.
vapi/avahi-gobject.vapi | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/avahi-gobject.vapi b/vapi/avahi-gobject.vapi
index ef9474e..2c440bd 100644
--- a/vapi/avahi-gobject.vapi
+++ b/vapi/avahi-gobject.vapi
@@ -230,7 +230,7 @@ namespace Avahi {
public string? escape_label(string s) {
size_t len = LABEL_MAX * 4;
char* dest = new char[len];
- return _escape_label(s, s.size(), ref dest, ref len);
+ return _escape_label(s, s.length, ref dest, ref len);
}
[CCode(cname="avahi_service_name_join")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]