Changeset View
Changeset View
Standalone View
Standalone View
duchain/builders/declarationbuilder.cpp
Context not available. | |||||
779 | funDec->addDefaultParameter(IndexedString(symbol)); | 779 | funDec->addDefaultParameter(IndexedString(symbol)); | ||
---|---|---|---|---|---|
780 | if (node->isVariadic != -1) { | 780 | if (node->isVariadic != -1) { | ||
781 | reportError(i18n("Variadic parameter cannot have a default value"), node->defaultValue); | 781 | reportError(i18n("Variadic parameter cannot have a default value"), node->defaultValue); | ||
782 | } else if ( node->parameterType && symbol.compare(QLatin1String("null"), Qt::CaseInsensitive) != 0 ) { | 782 | } else if ( node->parameterType && node->parameterType->objectType && symbol.compare(QLatin1String("null"), Qt::CaseInsensitive) != 0 ) { | ||
783 | reportError(i18n("Default value for parameters with a class type hint can only be NULL."), node->defaultValue); | 783 | reportError(i18n("Default value for parameters with a class type hint can only be NULL."), node->defaultValue); | ||
784 | } | 784 | } | ||
785 | } else if ( !node->defaultValue && funDec->defaultParametersSize() ) { | 785 | } else if ( !node->defaultValue && funDec->defaultParametersSize() ) { | ||
Context not available. |