aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/cppgenerator.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-07 10:28:58 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-07 14:38:37 +0200
commit5013f3376cf7bf57eb6003fc4453baefe9060dc5 (patch)
tree81507fb14025f7dd72a69f7cf70d77308a7cb666 /sources/shiboken6/generator/shiboken/cppgenerator.cpp
parent6541627d63428f8e6315d992180ce8855c246668 (diff)
shiboken6: Remove OverloadData::overloadsWithoutRepetition()
Mpve the functionality to remove the const-overloads into ShibokenGenerator::getFunctionGroups(), so that it is not called repeatedly. Amends 5e4a1287c1742f96c5ba3ce0aca75791ce806157. Task-number: PYSIDE-1653 Change-Id: I4ed8dfac9d4101a9c1abb76aed884b194f7bf793 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/generator/shiboken/cppgenerator.cpp')
-rw-r--r--sources/shiboken6/generator/shiboken/cppgenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
index 345cfc4b6..472e57de8 100644
--- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp
+++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp
@@ -2739,7 +2739,7 @@ void CppGenerator::writeOverloadedFunctionDecisor(TextStream &s, const OverloadD
{
s << "// Overloaded function decisor\n";
const auto rfunc = overloadData.referenceFunction();
- const AbstractMetaFunctionCList &functionOverloads = overloadData.overloadsWithoutRepetition();
+ const AbstractMetaFunctionCList &functionOverloads = overloadData.overloads();
for (int i = 0; i < functionOverloads.count(); i++) {
const auto func = functionOverloads.at(i);
s << "// " << i << ": ";
@@ -2938,7 +2938,7 @@ void CppGenerator::writeOverloadedFunctionDecisorEngine(TextStream &s,
void CppGenerator::writeFunctionCalls(TextStream &s, const OverloadData &overloadData,
const GeneratorContext &context) const
{
- const AbstractMetaFunctionCList &overloads = overloadData.overloadsWithoutRepetition();
+ const AbstractMetaFunctionCList &overloads = overloadData.overloads();
s << "// Call function/method\n"
<< (overloads.count() > 1 ? "switch (overloadId) " : "") << "{\n";
{