codeblocks-gcc11.patch 778 B

1234567891011121314
  1. diff --git a/src/plugins/openfileslist/openfileslistplugin.h b/src/plugins/openfileslist/openfileslistplugin.h
  2. index 7fd7a95..87b08ee 100644
  3. --- a/src/plugins/openfileslist/openfileslistplugin.h
  4. +++ b/src/plugins/openfileslist/openfileslistplugin.h
  5. @@ -23,7 +23,7 @@ struct TargetFilesData
  6. // Functor for the std::set predicate to sort the opened editor files according to their tab order
  7. struct compareLess
  8. {
  9. - bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) { return lhs->editorTabPos < rhs->editorTabPos; }
  10. + bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) const { return lhs->editorTabPos < rhs->editorTabPos; }
  11. };
  12. typedef std::set<ProjectFile*, compareLess> OpenFilesSet;
  13. ProjectFile* activeFile;