[vala/0.48] vapigen: Avoid superfluous cast



commit bf36ecdf1939be778daffd79dbc3b0cdb766ac57
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Nov 11 17:04:32 2020 +0100

    vapigen: Avoid superfluous cast

 vapigen/valagidlparser.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index d4c70d8a2..87441dc47 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -473,7 +473,7 @@ public class Vala.GIdlParser : CodeVisitor {
                Symbol? cc = null;
 
                foreach ( unowned string tok in path ) {
-                       cc = cp.scope.lookup (tok) as Symbol;
+                       cc = cp.scope.lookup (tok);
                        if ( cc == null ) {
                                cc = new Namespace (tok, current_source_reference);
                                add_symbol_to_container (cp, cc);


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