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 819a007 commit ed5196a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/base/QXmppColorGeneration.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
#include <QColor>
#endif

class QXMPP_EXPORT QXmppColorGeneration
class QXmppColorGeneration
{
public:
struct Rgb {
struct QXMPP_EXPORT Rgb {
quint8 red;
quint8 green;
quint8 blue;
};

static Rgb generateRgb(QStringView str);
QXMPP_EXPORT 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 ed5196a

Please sign in to comment.