[vala/wip/issue/894: 3/3] vapigen: Avoid superfluous cast




commit 9dd9ffeeaf3bc0faaa031c1da97608b8ca61d000
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 9355a8516..3ffa0c53b 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]