diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index 9b749f432c..316e92123e 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -784,7 +784,7 @@ QFont &QFont::operator=(const QFont &font) */ QString QFont::family() const { - return d->request.families.isEmpty() ? QString() : d->request.families.first(); + return d->request.families.isEmpty() ? QString() : d->request.families.constFirst(); } /*!