[gnome-builder] vala: Avoid ownership mismatches of container elements
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vala: Avoid ownership mismatches of container elements
- Date: Sun, 8 Apr 2018 20:34:47 +0000 (UTC)
commit 12caa73fc8c5fdbc2a1b78a539ba1b6bb617bc04
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Apr 8 10:45:10 2018 +0200
vala: Avoid ownership mismatches of container elements
src/plugins/vala-pack/ide-vala-index.vala | 4 ++--
src/plugins/vala-pack/ide-vala-source-file.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/vala-pack/ide-vala-index.vala b/src/plugins/vala-pack/ide-vala-index.vala
index 43e9d7226..de9fcce4b 100644
--- a/src/plugins/vala-pack/ide-vala-index.vala
+++ b/src/plugins/vala-pack/ide-vala-index.vala
@@ -330,7 +330,7 @@ namespace Ide
int line,
int column,
string? line_text,
- GLib.GenericArray<Ide.UnsavedFile>? unsaved_files,
+ GLib.GenericArray<unowned Ide.UnsavedFile>?
unsaved_files,
Ide.ValaCompletionProvider provider,
GLib.Cancellable? cancellable,
out int result_line,
@@ -394,7 +394,7 @@ namespace Ide
return diagnostics;
}
- void apply_unsaved_files (GLib.GenericArray<Ide.UnsavedFile> unsaved_files)
+ void apply_unsaved_files (GLib.GenericArray<unowned Ide.UnsavedFile> unsaved_files)
{
foreach (var source_file in this.code_context.get_source_files ()) {
if ((source_file.file_type == Vala.SourceFileType.SOURCE) &&
diff --git a/src/plugins/vala-pack/ide-vala-source-file.vala b/src/plugins/vala-pack/ide-vala-source-file.vala
index f36c71ff1..dc6f7203e 100644
--- a/src/plugins/vala-pack/ide-vala-source-file.vala
+++ b/src/plugins/vala-pack/ide-vala-source-file.vala
@@ -99,7 +99,7 @@ namespace Ide
this.dirty = true;
}
- public void sync (GenericArray<Ide.UnsavedFile> unsaved_files)
+ public void sync (GenericArray<unowned Ide.UnsavedFile> unsaved_files)
{
var gfile = this.file.file;
unsaved_files.foreach((unsaved_file) => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]