##// END OF EJS Templates
improved function sorting...
florianlink -
r127:177c0973883a
parent child
Show More
@@ -252,6 +252,8 void ShellGenerator::writeFunctionSignature(QTextStream &s,
252 252 s << " const";
253 253 }
254 254
255 bool function_sorter(AbstractMetaFunction *a, AbstractMetaFunction *b);
256
255 257 AbstractMetaFunctionList ShellGenerator::getFunctionsToWrap(const AbstractMetaClass* meta_class)
256 258 {
257 259 AbstractMetaFunctionList functions = meta_class->queryFunctions(
@@ -274,7 +276,7 AbstractMetaFunctionList ShellGenerator::getFunctionsToWrap(const AbstractMetaCl
274 276 resultFunctions << func;
275 277 }
276 278 }
277 qStableSort(resultFunctions);
279 qSort(resultFunctions.begin(), resultFunctions.end(), function_sorter);
278 280 return resultFunctions;
279 281 }
280 282
@@ -284,7 +286,7 AbstractMetaFunctionList ShellGenerator::getVirtualFunctionsForShell(const Abstr
284 286 AbstractMetaClass::VirtualFunctions | AbstractMetaClass::WasVisible
285 287 // | AbstractMetaClass::NotRemovedFromTargetLang
286 288 );
287 qStableSort(functions);
289 qSort(functions.begin(), functions.end(), function_sorter);
288 290 return functions;
289 291 }
290 292
@@ -297,7 +299,7 AbstractMetaFunctionList ShellGenerator::getProtectedFunctionsThatNeedPromotion(
297 299 functions << func;
298 300 }
299 301 }
300 qStableSort(functions);
302 qSort(functions.begin(), functions.end(), function_sorter);
301 303 return functions;
302 304 }
303 305
@@ -894,6 +894,7
894 894 <modify-function signature="operator const char *()const" remove="all"/>
895 895 <modify-function signature="operator const void *()const" remove="all"/>
896 896 <modify-function signature="operator+=(const char*)" remove="all"/>
897 <modify-function signature="operator!=(QString)const" remove="all"/>
897 898 <modify-function signature="operator=(const char*)" remove="all"/>
898 899 <modify-function signature="operator[](int)" remove="all"/>
899 900 <modify-function signature="operator[](int)const" remove="all"/>
@@ -1134,6 +1134,7
1134 1134 <modify-function signature="operator const char *()const" remove="all"/>
1135 1135 <modify-function signature="operator const void *()const" remove="all"/>
1136 1136 <modify-function signature="operator+=(const char*)" remove="all"/>
1137 <modify-function signature="operator!=(QString)const" remove="all"/>
1137 1138 <modify-function signature="operator=(const char*)" remove="all"/>
1138 1139 <modify-function signature="operator[](int)" remove="all"/>
1139 1140 <modify-function signature="operator[](int)const" remove="all"/>
General Comments 0
You need to be logged in to leave comments. Login now