Skip to content

Commit

Permalink
Fix building with older Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Nov 24, 2024
1 parent 09142d3 commit 1b34e99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Quotient/events/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "../ranges_extras.h"

#include <QtCore/QJsonDocument>
#include <QtCore/QStringBuilder>

#if Quotient_VERSION_MAJOR == 0 && Quotient_VERSION_MINOR <= 9
#include "stateevent.h" // For deprecated isStateEvent(); remove, once Event::isStateEvent() is gone
Expand All @@ -25,7 +26,7 @@ void AbstractEventMetaType::addDerived(const AbstractEventMetaType* newType)
// is not normal, so give as much information as possible to diagnose
if (QUO_ALARM_X(
(*existing)->className == newType->className,
QLatin1StringView(newType->className) % " claims '"_L1 % newType->matrixId
QString::fromLatin1(newType->className) % " claims '"_L1 % newType->matrixId
% "' repeatedly;"
" check that it's exported across translation units or shared objects"_L1))
return; // That situation is very wrong so maybe std::terminate() even?
Expand Down

0 comments on commit 1b34e99

Please sign in to comment.