diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp index afc777be1a8..7878ee1533a 100644 --- a/src/plugins/cppeditor/cppquickfixes.cpp +++ b/src/plugins/cppeditor/cppquickfixes.cpp @@ -3704,7 +3704,7 @@ void ExtractFunction::match(const CppQuickFixInterface &interface, QuickFixOpera int selStart = cursor.selectionStart(); int selEnd = cursor.selectionEnd(); if (selStart > selEnd) - qSwap(selStart, selEnd); + std::swap(selStart, selEnd); Overview printer;