1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/testing/codeblocks/0006-fix-openfileslistplugin-gcc11.patch
2021-12-27 19:52:37 +00:00

25 lines
815 B
Diff

--- a/src/plugins/openfileslist/openfileslistplugin.h
+++ b/src/plugins/openfileslist/openfileslistplugin.h
@@ -10,6 +10,7 @@
#include <projectfile.h>
#include <wx/dynarray.h>
+#include <functional>
class wxTreeCtrl;
class wxTreeEvent;
@@ -20,12 +21,8 @@
struct TargetFilesData
{
TargetFilesData() : activeFile(nullptr) {} // ctor
- // Functor for the std::set predicate to sort the opened editor files according to their tab order
- struct compareLess
- {
- bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) { return lhs->editorTabPos < rhs->editorTabPos; }
- };
- typedef std::set<ProjectFile*, compareLess> OpenFilesSet;
+
+ typedef std::set<ProjectFile*, std::less<ProjectFile*>> OpenFilesSet;
ProjectFile* activeFile;
OpenFilesSet openFiles;
};