From ffc070a3f2605d4b85d839830eb4f30120415c9b Mon Sep 17 00:00:00 2001 From: Frank Meerkoetter Date: Wed, 3 Oct 2018 22:13:42 +0200 Subject: [PATCH] Replace call to a long obsolete QtAlgorithms function Change-Id: I1e07649d7d1153400951ae734c7f78e03ff8fe32 Reviewed-by: Orgad Shaneh --- src/plugins/cppeditor/cppquickfixes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;