codeblocks: fix build with gcc>=11

This commit is contained in:
Duncaen 2022-10-08 17:28:18 +02:00
parent 6af326e6c8
commit 9681df98e4
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/plugins/openfileslist/openfileslistplugin.h b/src/plugins/openfileslist/openfileslistplugin.h
index 7fd7a95..87b08ee 100644
--- a/src/plugins/openfileslist/openfileslistplugin.h
+++ b/src/plugins/openfileslist/openfileslistplugin.h
@@ -23,7 +23,7 @@ struct TargetFilesData
// 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; }
+ bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) const { return lhs->editorTabPos < rhs->editorTabPos; }
};
typedef std::set<ProjectFile*, compareLess> OpenFilesSet;
ProjectFile* activeFile;