[vala] glib: get_filename_charsets "returns" unowned string[]
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib: get_filename_charsets "returns" unowned string[]
- Date: Wed, 18 Mar 2015 19:17:15 +0000 (UTC)
commit 8674d5c5b2d0fb7ed318d6d35e1857233f9151bd
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Mar 18 20:15:31 2015 +0100
glib: get_filename_charsets "returns" unowned string[]
tests/methods/bug743877.vala | 2 +-
vapi/glib-2.0.vapi | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/methods/bug743877.vala b/tests/methods/bug743877.vala
index 127aaf0..ca4c87d 100644
--- a/tests/methods/bug743877.vala
+++ b/tests/methods/bug743877.vala
@@ -1,7 +1,7 @@
void main () {
Intl.setlocale ();
- string[] charsets;
+ unowned string[] charsets;
var is_utf8 = GLib.get_filename_charsets (out charsets);
assert (charsets.length != -1);
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index aa46909..b74b139 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2266,7 +2266,7 @@ namespace GLib {
public static string convert (string str, ssize_t len, string to_codeset, string from_codeset, out
size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError;
public static bool get_charset (out unowned string charset);
- public static bool get_filename_charsets ([CCode (array_length = false, array_null_terminated =
true)] out string[] charsets);
+ public static bool get_filename_charsets ([CCode (array_length = false, array_null_terminated =
true)] out unowned string[] charsets);
[SimpleType]
public struct IConv {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]