[gedit-code-assistance] Fix adding non mapped semantic value references
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-code-assistance] Fix adding non mapped semantic value references
- Date: Sat, 3 Mar 2012 15:01:41 +0000 (UTC)
commit 313d56a7c992482e84c247792d93b1bc1f59695a
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sat Mar 3 15:58:29 2012 +0100
Fix adding non mapped semantic value references
src/gcp-c-document.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gcp-c-document.vala b/src/gcp-c-document.vala
index 95b8fed..661891e 100644
--- a/src/gcp-c-document.vala
+++ b/src/gcp-c-document.vala
@@ -213,7 +213,10 @@ class Document : Gcp.Document,
if (!semmap.has_key(wrapper))
{
- semmap[wrapper] = new SemanticValue(cursor.referenced());
+ var refval = new SemanticValue(cursor.referenced());
+
+ semmap[wrapper] = refval;
+ sems.add(refval);
}
SemanticValue rr = semmap[wrapper];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]