[vala/wip/issue/894: 3/3] vapigen: Avoid superfluous cast
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/issue/894: 3/3] vapigen: Avoid superfluous cast
- Date: Wed, 11 Nov 2020 16:10:31 +0000 (UTC)
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]