]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclasslist.C
Fix event loop to no longer eat CPU
[lyx.git] / src / lyxtextclasslist.C
index fcff9b4e4614abb42d64a753d7f18ec9a80231e2..99c2d94a3acf32b2ae8af998a49ff46cdc9270b0 100644 (file)
@@ -69,9 +69,10 @@ LyXTextClassList::operator[](textclass_type textclass) const
 
 
 // used when sorting the textclass list.
-struct less_textclass_avail_desc
+class less_textclass_avail_desc
        : public std::binary_function<LyXTextClass, LyXTextClass, int>
 {
+public:
        int operator()(LyXTextClass const & tc1,
                       LyXTextClass const & tc2) const
        {