[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [pykde5/srhaque-new-sip-generator] sip_generation: Unbreak support for second declaration in %Method
From: Shaheed Haque <srhaque () theiet ! org>
Date: 2016-04-30 19:18:09
Message-ID: E1awaP3-0005zL-4J () scm ! kde ! org
[Download RAW message or body]
Git commit 081087075a30fc3dff749595d9a695860394fd9c by Shaheed Haque.
Committed on 30/04/2016 at 19:17.
Pushed by shaheed into branch 'srhaque-new-sip-generator'.
Unbreak support for second declaration in %MethodCode.
M +1 -1 sip_generation/rules_engine.py
http://commits.kde.org/pykde5/081087075a30fc3dff749595d9a695860394fd9c
diff --git a/sip_generation/rules_engine.py b/sip_generation/rules_engine.py
index cf4392e..25ceff6 100755
--- a/sip_generation/rules_engine.py
+++ b/sip_generation/rules_engine.py
@@ -613,7 +613,7 @@ class MethodCodeDb(AbstractCompiledCodeDb):
# The user might provide one or other or both of decl2 and fn_result2 to \
signify a C++ signature. If # needed, default a missing value from decl/fn_result.
#
- if sip["decl2"] or sip["fn_result2"]:
+ if "decl2" in entry or "fn_result2" in entry:
sip["decl2"] = entry.get("decl2", sip["decl"])
sip["fn_result2"] = entry.get("fn_result2", sip["fn_result2"])
#
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic