[LyX/2.3.x] rawName() is only used with Qt4.
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sat Mar 13 20:53:15 UTC 2021
commit 847312daea54fc703b0c679ef3b02797b55d10ba
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Sat Mar 13 21:57:18 2021 +0100
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)
| ^~~~~~~
---
src/frontends/qt4/GuiFontLoader.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/frontends/qt4/GuiFontLoader.cpp b/src/frontends/qt4/GuiFontLoader.cpp
index 130e5b9..caa531c 100644
--- a/src/frontends/qt4/GuiFontLoader.cpp
+++ b/src/frontends/qt4/GuiFontLoader.cpp
@@ -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)
More information about the lyx-cvs
mailing list