Skip to content

Commit

Permalink
that can't be it, I would've gotten a linker error, no?
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Sep 10, 2024
1 parent 8122d81 commit 00a84b6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 24 deletions.
17 changes: 4 additions & 13 deletions src/common/Common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,15 @@

namespace chatterino {

inline constexpr auto &LINK_CHATTERINO_WIKI_DATA =
u"https://wiki.chatterino.com";
inline constexpr auto &LINK_CHATTERINO_DISCORD_DATA =
constexpr QStringView LINK_CHATTERINO_WIKI = u"https://wiki.chatterino.com";
constexpr QStringView LINK_CHATTERINO_DISCORD =
u"https://discord.gg/7Y5AYhAK4z";
inline constexpr auto &LINK_CHATTERINO_SOURCE_DATA =
constexpr QStringView LINK_CHATTERINO_SOURCE =
u"https://github.com/Chatterino/chatterino2";

inline constexpr auto &TWITCH_PLAYER_URL_DATA =
constexpr QStringView TWITCH_PLAYER_URL =
u"https://player.twitch.tv/?channel=%1&parent=twitch.tv";

inline constexpr QStringView LINK_CHATTERINO_WIKI = LINK_CHATTERINO_WIKI_DATA;
inline constexpr QStringView LINK_CHATTERINO_DISCORD =
LINK_CHATTERINO_DISCORD_DATA;
inline constexpr QStringView LINK_CHATTERINO_SOURCE =
LINK_CHATTERINO_SOURCE_DATA;

inline constexpr QStringView TWITCH_PLAYER_URL = TWITCH_PLAYER_URL_DATA;

enum class HighlightState {
None,
Highlighted,
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/filters/lang/Filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace chatterino::filters {

const QMap<QString, Type> MESSAGE_TYPING_CONTEXT = {
extern const QMap<QString, Type> MESSAGE_TYPING_CONTEXT = {
{"author.badges", Type::StringList},
{"author.color", Type::Color},
{"author.name", Type::String},
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/filters/lang/Tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const QRegularExpression TOKEN_REGEX(

namespace chatterino::filters {

const QMap<QString, QString> validIdentifiersMap = {
extern const QMap<QString, QString> validIdentifiersMap = {
{"author.badges", "author badges"},
{"author.color", "author color"},
{"author.name", "author name"},
Expand Down
6 changes: 3 additions & 3 deletions src/providers/twitch/TwitchCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace chatterino {

const std::vector<QColor> TWITCH_USERNAME_COLORS = {
extern const std::vector<QColor> TWITCH_USERNAME_COLORS = {
{255, 0, 0}, // Red
{0, 0, 255}, // Blue
{0, 255, 0}, // Green
Expand All @@ -20,7 +20,7 @@ const std::vector<QColor> TWITCH_USERNAME_COLORS = {
{0, 255, 127}, // SpringGreen
};

const QStringList TWITCH_DEFAULT_COMMANDS{
extern const QStringList TWITCH_DEFAULT_COMMANDS{
"help",
"w",
"me",
Expand Down Expand Up @@ -58,6 +58,6 @@ const QStringList TWITCH_DEFAULT_COMMANDS{
"warn",
};

const QStringList TWITCH_WHISPER_COMMANDS{"/w", ".w"};
extern const QStringList TWITCH_WHISPER_COMMANDS{"/w", ".w"};

} // namespace chatterino
8 changes: 2 additions & 6 deletions src/providers/twitch/TwitchEmotes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,8 @@ using TwitchEmoteSetMap = boost::unordered_flat_map<EmoteSetId, TwitchEmoteSet>;

struct HelixChannelEmote;

inline constexpr auto &TWITCH_SUB_EMOTE_SET_PREFIX_DATA = u"x-c2-s-";
inline constexpr auto &TWITCH_BIT_EMOTE_SET_PREFIX_DATA = u"x-c2-b-";
inline constexpr QStringView TWITCH_SUB_EMOTE_SET_PREFIX =
TWITCH_SUB_EMOTE_SET_PREFIX_DATA;
inline constexpr QStringView TWITCH_BIT_EMOTE_SET_PREFIX =
TWITCH_BIT_EMOTE_SET_PREFIX_DATA;
constexpr QStringView TWITCH_SUB_EMOTE_SET_PREFIX = u"x-c2-s-";
constexpr QStringView TWITCH_BIT_EMOTE_SET_PREFIX = u"x-c2-b-";

struct TwitchEmoteSetMeta {
QString setID;
Expand Down

0 comments on commit 00a84b6

Please sign in to comment.