Mercurial > octave
diff libgui/src/m-editor/file-editor.cc @ 28836:d0a64e67749e stable
avoid deprecated qSort function
* find-files-model.cc, file-editor.cc, resource-manager.cc,
variable-editor.cc: Use std::sort instead of qSort.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 13 Jul 2020 15:31:28 -0400 |
parents | 2b52e473b6ef |
children | 7d9a11de251f 0a5b15007766 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc Mon Jul 13 14:57:22 2020 -0400 +++ b/libgui/src/m-editor/file-editor.cc Mon Jul 13 15:31:28 2020 -0400 @@ -29,6 +29,8 @@ #if defined (HAVE_QSCINTILLA) +#include <algorithm> + #include <QApplication> #include <QFile> #include <QFileDialog> @@ -338,7 +340,7 @@ s_data << item; } - qSort (s_data); + std::sort (s_data.begin (), s_data.end ()); // finally open the files with the desired encoding in the desired order for (int n = 0; n < s_data.count (); ++n)