removed namespaces
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
#include <QNetworkReply>
|
||||
#include <QNetworkRequest>
|
||||
|
||||
using namespace chatterino::messages;
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
Channel::Channel(const QString &_name, Type _type)
|
||||
|
||||
@@ -13,9 +13,7 @@
|
||||
#include <memory>
|
||||
|
||||
namespace chatterino {
|
||||
namespace messages {
|
||||
struct Message;
|
||||
} // namespace messages
|
||||
|
||||
class Channel : public std::enable_shared_from_this<Channel>
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include "singletons/SettingsManager.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
EmoteData::EmoteData(messages::Image *_image)
|
||||
: image1x(_image)
|
||||
@@ -44,5 +43,4 @@ messages::Image *EmoteData::getImage(float scale) const
|
||||
return _image;
|
||||
}
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include "util/ConcurrentMap.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
struct EmoteData {
|
||||
EmoteData() = default;
|
||||
@@ -25,5 +24,4 @@ struct EmoteData {
|
||||
|
||||
using EmoteMap = ConcurrentMap<QString, EmoteData>;
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <type_traits>
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
// = std::enable_if<std::is_enum<T>::value>::type
|
||||
|
||||
@@ -63,5 +62,4 @@ public:
|
||||
T value;
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <mutex>
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
template <typename T>
|
||||
class MutexValue : boost::noncopyable
|
||||
@@ -37,5 +36,4 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <QNetworkAccessManager>
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
QThread NetworkManager::workerThread;
|
||||
QNetworkAccessManager NetworkManager::NaM;
|
||||
@@ -20,5 +19,4 @@ void NetworkManager::deinit()
|
||||
NetworkManager::workerThread.wait();
|
||||
}
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include <QUrl>
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
static QJsonObject parseJSONFromReplyxD(QNetworkReply *reply)
|
||||
{
|
||||
@@ -169,5 +168,4 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "Application.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
NetworkRequest::NetworkRequest(const char *url)
|
||||
{
|
||||
@@ -40,5 +39,4 @@ void NetworkRequest::Data::writeToCache(const QByteArray &bytes)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
#include <QFile>
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
static QJsonObject parseJSONFromData(const QByteArray &data)
|
||||
{
|
||||
@@ -468,5 +467,4 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <QObject>
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
class NetworkRequester : public QObject
|
||||
{
|
||||
@@ -13,5 +12,4 @@ signals:
|
||||
void requestUrl();
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
class QNetworkReply;
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
class NetworkWorker : public QObject
|
||||
{
|
||||
@@ -15,5 +14,4 @@ signals:
|
||||
void doneUrl(QNetworkReply *);
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "boost/noncopyable.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
template <typename T>
|
||||
class Property final : boost::noncopyable
|
||||
@@ -32,5 +31,4 @@ protected:
|
||||
T value;
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
enum class ProviderId { Twitch };
|
||||
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "debug/AssertInGuiThread.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
template <typename TVectorItem>
|
||||
struct SignalVectorItemArgs {
|
||||
@@ -123,5 +122,4 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <pajlada/signals/signalholder.hpp>
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
|
||||
template <typename TVectorItem>
|
||||
class SignalVectorModel : public QAbstractTableModel, pajlada::Signals::SignalHolder
|
||||
@@ -317,5 +316,4 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
#include <functional>
|
||||
|
||||
namespace chatterino {
|
||||
namespace util {
|
||||
namespace twitch {
|
||||
|
||||
static void get(QString url, const QObject *caller,
|
||||
std::function<void(const QJsonObject &)> successCallback)
|
||||
@@ -155,6 +153,4 @@ static void sendDelete(QUrl url, std::function<void()> successCallback)
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace util
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user