[anjuta/sdb-queries] language-support-cpp-java: Fixed warnings.



commit 192440ab8f5ef7289c0ac11e79f1d1e87b9703bf
Author: Naba Kumar <naba gnome org>
Date:   Sun Jun 13 16:51:15 2010 +0300

    language-support-cpp-java: Fixed warnings.

 .../cxxparser/engine-parser.cpp                    |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp b/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp
index 0c0d8c7..5841e82 100644
--- a/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp
+++ b/plugins/language-support-cpp-java/cxxparser/engine-parser.cpp
@@ -129,6 +129,12 @@ EngineParser::setSymbolManager (IAnjutaSymbolManager *manager)
 		IANJUTA_SYMBOL_FIELD_ID, IANJUTA_SYMBOL_FIELD_NAME,
 		IANJUTA_SYMBOL_FIELD_KIND
 	};
+	static IAnjutaSymbolField query_search_in_scope_fields[] =
+	{
+		IANJUTA_SYMBOL_FIELD_ID, IANJUTA_SYMBOL_FIELD_NAME,
+		IANJUTA_SYMBOL_FIELD_KIND, IANJUTA_SYMBOL_FIELD_RETURNTYPE,
+		IANJUTA_SYMBOL_FIELD_SIGNATURE
+	};
 	query_search = ianjuta_symbol_manager_create_query (manager,
 						IANJUTA_SYMBOL_QUERY_SEARCH,
 						IANJUTA_SYMBOL_QUERY_DB_PROJECT, NULL);
@@ -144,6 +150,9 @@ EngineParser::setSymbolManager (IAnjutaSymbolManager *manager)
 	query_search_in_scope = ianjuta_symbol_manager_create_query (manager,
 						IANJUTA_SYMBOL_QUERY_SEARCH_IN_SCOPE,
 						IANJUTA_SYMBOL_QUERY_DB_PROJECT, NULL);
+	ianjuta_symbol_query_set_fields (query_search_in_scope,
+	                                 G_N_ELEMENTS (query_search_in_scope_fields),
+	                                 query_search_in_scope_fields, NULL);
 	query_parent_scope = ianjuta_symbol_manager_create_query (manager,
 						IANJUTA_SYMBOL_QUERY_SEARCH_PARENT_SCOPE,
 						IANJUTA_SYMBOL_QUERY_DB_PROJECT, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]