From 00ed62c04c26dacfcd8c2d678cd528371e78c1b1 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 27 Jun 2019 21:25:58 -0500 Subject: [PATCH] [nostalgia/studio] Replace use of deprecated qSort with std::sort --- src/nostalgia/studio/lib/oxfstreeview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nostalgia/studio/lib/oxfstreeview.cpp b/src/nostalgia/studio/lib/oxfstreeview.cpp index ee782724..a15ad287 100644 --- a/src/nostalgia/studio/lib/oxfstreeview.cpp +++ b/src/nostalgia/studio/lib/oxfstreeview.cpp @@ -6,6 +6,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + #include #include #include @@ -30,7 +32,7 @@ OxFSFile::OxFSFile(PassThroughFS *fs, QString path, OxFSFile *parentItem) { ls.push_back(name); return OxError(0); }); - qSort(ls); + std::sort(ls.begin(), ls.end()); } auto p = m_path; // make sure ends with path separator