Fixing some build errors

master
Tomatix 5 years ago
parent 2f4e1033fe
commit 4299f3ebad
  1. 9
      ICommand/ICommand.cpp
  2. 1
      IRCClient/Utilities.h

@ -10,6 +10,11 @@
#include "ICommandPriv.h"
#include <algorithm>
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
#define QT_SPLIT_SKIP_EMPTY_PARTS QString::SkipEmptyParts
#else
#define QT_SPLIT_SKIP_EMPTY_PARTS Qt::SkipEmptyParts
#endif
ICommand::ICommand(IRC& connection_)
: mp(new ICommandPriv(*this, connection_, connection_.getStatus()))
@ -519,7 +524,7 @@ bool ICommand::tryParseInternal(QString cmdLine)
}
else if (command == MUTERESP) {
QStringList list = cmdLine.split(' ', Qt::SkipEmptyParts);
QStringList list = cmdLine.split(' ', QT_SPLIT_SKIP_EMPTY_PARTS);
if (list.isEmpty()) {
print_notEnoughParameters(command);
return true;
@ -529,7 +534,7 @@ bool ICommand::tryParseInternal(QString cmdLine)
}
else if (command == UNMUTERESP) {
QStringList list = cmdLine.split(' ', Qt::SkipEmptyParts);
QStringList list = cmdLine.split(' ', QT_SPLIT_SKIP_EMPTY_PARTS);
if (list.isEmpty()) {
print_notEnoughParameters(command);
return true;

@ -1,6 +1,7 @@
#ifndef IRCUTILITIES_H
#define IRCUTILITIES_H
#include <unordered_map>
#include <string>
#include <algorithm>

Loading…
Cancel
Save