]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfont.C
fix the <...> delimiters
[lyx.git] / src / lyxfont.C
index 4958015021338ed7c88df32a84684bfdf67775d4..c3067a84005090f87da6301df3b23f6db384be83 100644 (file)
@@ -23,7 +23,6 @@
 #include "lyxrc.h"
 #include "lyxlex.h"
 #include "language.h"
-#include "FontLoader.h"
 #include "support/lstrings.h"
 #include "bufferparams.h" // stateText
 
@@ -139,23 +138,18 @@ LyXFont::FontBits LyXFont::ignore = {
        IGNORE };
 
 
-bool LyXFont::FontBits::operator==(LyXFont::FontBits const & fb1) const
+bool operator==(LyXFont::FontBits const & lhs,
+               LyXFont::FontBits const & rhs)
 {
-       return fb1.family == family &&
-               fb1.series == series &&
-               fb1.shape == shape &&
-               fb1.size == size &&
-               fb1.color == color &&
-               fb1.emph == emph &&
-               fb1.underbar == underbar &&
-               fb1.noun == noun &&
-               fb1.number == number;
-}
-
-
-bool LyXFont::FontBits::operator!=(LyXFont::FontBits const & fb1) const
-{
-       return !(fb1 == *this);
+       return lhs.family == rhs.family &&
+               lhs.series == rhs.series &&
+               lhs.shape == rhs.shape &&
+               lhs.size == rhs.size &&
+               lhs.color == rhs.color &&
+               lhs.emph == rhs.emph &&
+               lhs.underbar == rhs.underbar &&
+               lhs.noun == rhs.noun &&
+               lhs.number == rhs.number;
 }