codeblocks-gcc11.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. Index: src/plugins/openfileslist/openfileslistplugin.h
  2. ===================================================================
  3. diff --git a/src/plugins/openfileslist/openfileslistplugin.h b/src/plugins/openfileslist/openfileslistplugin.h
  4. --- a/src/plugins/openfileslist/openfileslistplugin.h (revision 12302)
  5. +++ b/src/plugins/openfileslist/openfileslistplugin.h (revision 12303)
  6. @@ -10,6 +10,7 @@
  7. #include <projectfile.h>
  8. #include <wx/dynarray.h>
  9. +#include <functional>
  10. class wxTreeCtrl;
  11. class wxTreeEvent;
  12. @@ -20,12 +21,8 @@
  13. struct TargetFilesData
  14. {
  15. TargetFilesData() : activeFile(nullptr) {} // ctor
  16. - // Functor for the std::set predicate to sort the opened editor files according to their tab order
  17. - struct compareLess
  18. - {
  19. - bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) { return lhs->editorTabPos < rhs->editorTabPos; }
  20. - };
  21. - typedef std::set<ProjectFile*, compareLess> OpenFilesSet;
  22. +
  23. + typedef std::set<ProjectFile*, std::less<ProjectFile*>> OpenFilesSet;
  24. ProjectFile* activeFile;
  25. OpenFilesSet openFiles;
  26. };