From 22a487a08743e78944b161c33c004b9bcbb0dc34 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 18 Jan 2017 22:02:15 +0000 Subject: Bindings: Add explicit handling of nullptr as a parameter default Don't prepend a namespace to it as we do otherwise with enum/flags. --- find-modules/sip_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'find-modules/sip_generator.py') diff --git a/find-modules/sip_generator.py b/find-modules/sip_generator.py index 93a8f8c0..621fe711 100644 --- a/find-modules/sip_generator.py +++ b/find-modules/sip_generator.py @@ -590,7 +590,7 @@ class SipGenerator(object): return result def _get_param_value(text, parameterType): - if text == "0": + if text == "0" or text == "nullptr": return text if not "::" in parameterType.spelling: return text -- cgit v1.2.1