]> git.lyx.org Git - lyx.git/commitdiff
rawName() is only used with Qt4.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 13 Mar 2021 20:57:18 +0000 (21:57 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 13 Mar 2021 20:57:35 +0000 (21:57 +0100)
Fixes warning:
../../../../stable/src/frontends/qt4/GuiFontLoader.cpp:132:9: warning: ‘QString lyx::frontend::{anonymous}::rawName(const QString&)’ defined but not used [-Wunused-function]
  132 | QString rawName(QString const & family)
      |         ^~~~~~~

src/frontends/qt4/GuiFontLoader.cpp

index 130e5b9cd83fdbdbddb89d40453c736df120ec47..caa531cca9cc61cb17b4faaf3bd5dc97b011386e 100644 (file)
@@ -129,6 +129,7 @@ GuiFontInfo & fontinfo(FontInfo const & f)
 }
 
 
+#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
 QString rawName(QString const & family)
 {
        for (size_t i = 0; i < nr_symbol_fonts; ++i)
@@ -138,6 +139,7 @@ QString rawName(QString const & family)
        LYXERR(Debug::FONT, "BUG: family not found !");
        return QString();
 }
+#endif
 
 
 QString symbolFamily(FontFamily family)