Skip to content

Commit

Permalink
ColorGeneration: Fix MSVC linkage of header-only generateColor()
Browse files Browse the repository at this point in the history
  • Loading branch information
lnjX committed Feb 25, 2025
1 parent 7a50a07 commit de37822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/QXmppColorGeneration.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class QXMPP_EXPORT QXmppColorGeneration
static Rgb generateRgb(QStringView str);

#if defined(QT_GUI_LIB) || defined(QXMPP_DOC)
static QColor generateColor(QStringView str)
static inline QColor generateColor(QStringView str)
{
auto rgb = generateRgb(str);
return QColor(rgb.red, rgb.green, rgb.blue);
Expand Down

0 comments on commit de37822

Please sign in to comment.