[vala/0.12] avahi-gobject: Use string.length instead of deprecated string.size()



commit f3acd945c391145207262b4acd9713305cbbc5c0
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]