Changeset View
Changeset View
Standalone View
Standalone View
completion/helpers.cpp
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 124 | if (highlighting && ret.length() != textFormatStart) { | |||
---|---|---|---|---|---|
126 | *highlighting << QVariant(ret.length() - textFormatStart); | 126 | *highlighting << QVariant(ret.length() - textFormatStart); | ||
127 | *highlighting << doFormat; | 127 | *highlighting << doFormat; | ||
128 | textFormatStart = ret.length(); | 128 | textFormatStart = ret.length(); | ||
129 | } | 129 | } | ||
130 | } | 130 | } | ||
131 | 131 | | |||
132 | 132 | | |||
133 | if (num >= firstDefaultParam) { | 133 | if (num >= firstDefaultParam) { | ||
134 | ret += " = " + decl->defaultParameters()[defaultParamNum].str(); | 134 | IndexedString defaultStr = decl->defaultParameters()[defaultParamNum]; | ||
135 | if (!defaultStr.isEmpty()) { | ||||
136 | ret += " = " + defaultStr.str(); | ||||
137 | } | ||||
135 | ++defaultParamNum; | 138 | ++defaultParamNum; | ||
136 | } | 139 | } | ||
137 | 140 | | |||
138 | ++num; | 141 | ++num; | ||
139 | } | 142 | } | ||
140 | ret += ')'; | 143 | ret += ')'; | ||
141 | 144 | | |||
142 | if (highlighting && ret.length() != textFormatStart) { | 145 | if (highlighting && ret.length() != textFormatStart) { | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |