rawName() is only used with Qt4.

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)
      |         ^~~~~~~
This commit is contained in:
Jean-Marc Lasgouttes 2021-03-13 21:57:18 +01:00
parent 511abbf4ce
commit 847312daea

View 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)