vala r1241 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1241 - in trunk: . vala
- Date: Tue, 15 Apr 2008 22:40:33 +0100 (BST)
Author: juergbi
Date: Tue Apr 15 22:40:33 2008
New Revision: 1241
URL: http://svn.gnome.org/viewvc/vala?rev=1241&view=rev
Log:
2008-04-15 Juerg Billeter <j bitron ch>
* vala/valascope.vala: update for use with non-null types
Modified:
trunk/ChangeLog
trunk/vala/valascope.vala
Modified: trunk/vala/valascope.vala
==============================================================================
--- trunk/vala/valascope.vala (original)
+++ trunk/vala/valascope.vala Tue Apr 15 22:40:33 2008
@@ -55,7 +55,7 @@
* @param name name for the specified symbol
* @param sym a symbol
*/
- public void add (string name, Symbol sym) {
+ public void add (string? name, Symbol sym) {
if (name != null) {
if (symbol_table == null) {
symbol_table = new HashMap<string,Symbol> (str_hash, str_equal);
@@ -65,7 +65,7 @@
return;
}
- symbol_table[name] = sym;
+ symbol_table[(string) name] = sym;
}
sym.owner = this;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]