removed namespaces
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
#include "controllers/accounts/AccountController.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
void EmoteManager::initialize()
|
||||
{
|
||||
@@ -21,5 +20,4 @@ void EmoteManager::initialize()
|
||||
this->gifTimer.initialize();
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "singletons/helper/GifTimer.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class EmoteManager
|
||||
{
|
||||
@@ -26,5 +25,4 @@ public:
|
||||
GIFTimer gifTimer;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
#endif
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
FontManager::FontManager()
|
||||
: chatFontFamily("/appearance/currentFontFamily", DEFAULT_FONT_FAMILY)
|
||||
@@ -131,5 +130,4 @@ FontManager::FontData FontManager::createFontData(Type type, float scale)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <unordered_map>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class FontManager : boost::noncopyable
|
||||
{
|
||||
@@ -78,8 +77,6 @@ private:
|
||||
std::vector<std::unordered_map<float, FontData>> fontsByType;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
|
||||
using FontStyle = singletons::FontManager::Type;
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include <unordered_map>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
void LoggingManager::initialize()
|
||||
{
|
||||
@@ -37,5 +36,4 @@ void LoggingManager::addMessage(const QString &channelName, messages::MessagePtr
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <memory>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class PathManager;
|
||||
|
||||
class LoggingManager
|
||||
@@ -26,5 +26,4 @@ private:
|
||||
std::map<QString, std::unique_ptr<LoggingChannel>> loggingChannels;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -30,7 +30,6 @@ namespace ipc = boost::interprocess;
|
||||
#define MESSAGE_SIZE 1024
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
// fourtf: don't add this class to the application class
|
||||
NativeMessagingManager::NativeMessagingManager()
|
||||
@@ -240,5 +239,4 @@ std::string &NativeMessagingManager::getGuiMessageQueueName()
|
||||
return name;
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <QThread>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class NativeMessagingManager
|
||||
{
|
||||
@@ -30,5 +29,4 @@ public:
|
||||
static std::string &getGuiMessageQueueName();
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "util/CombinePath.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
PathManager *PathManager::instance = nullptr;
|
||||
|
||||
@@ -116,5 +115,4 @@ void PathManager::initSubDirectories()
|
||||
this->miscDirectory = makePath("Misc");
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class PathManager
|
||||
{
|
||||
@@ -46,5 +45,4 @@ private:
|
||||
void initSubDirectories();
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include <QPixmap>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -453,5 +452,4 @@ void ResourceManager::loadChatterinoBadges()
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <mutex>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class ResourceManager
|
||||
{
|
||||
@@ -154,5 +153,4 @@ public:
|
||||
void loadChatterinoBadges();
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -6,10 +6,7 @@
|
||||
#include "singletons/ResourceManager.hpp"
|
||||
#include "singletons/WindowManager.hpp"
|
||||
|
||||
using namespace chatterino::messages;
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
std::vector<std::weak_ptr<pajlada::Settings::ISettingData>> _settings;
|
||||
|
||||
@@ -227,5 +224,4 @@ void SettingManager::updateModerationActions()
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <pajlada/settings/settinglistener.hpp>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
void _actuallyRegisterSetting(std::weak_ptr<pajlada::Settings::ISettingData> setting);
|
||||
|
||||
@@ -148,5 +147,4 @@ private:
|
||||
pajlada::Settings::SettingListener wordFlagsListener;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <cmath>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
namespace detail {
|
||||
|
||||
@@ -254,5 +253,4 @@ void ThemeManager::normalizeColor(QColor &color)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <pajlada/settings/setting.hpp>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class WindowManager;
|
||||
|
||||
@@ -151,5 +150,4 @@ private:
|
||||
friend class WindowManager;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <QProcess>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
UpdateManager::UpdateManager()
|
||||
: currentVersion_(CHATTERINO_VERSION)
|
||||
@@ -155,5 +154,4 @@ void UpdateManager::setStatus_(UpdateStatus status)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <pajlada/signals/signal.hpp>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class UpdateManager
|
||||
{
|
||||
@@ -43,5 +42,4 @@ private:
|
||||
void setStatus_(UpdateStatus status);
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#define SETTINGS_FILENAME "/window-layout.json"
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
using SplitNode = widgets::SplitContainer::Node;
|
||||
using SplitDirection = widgets::SplitContainer::Direction;
|
||||
@@ -464,5 +463,4 @@ float WindowManager::getUiScaleValue(int scale)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,10 +4,6 @@
|
||||
#include "widgets/Window.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
// namespace widgets {
|
||||
// struct SplitContainer::Node;
|
||||
//}
|
||||
namespace singletons {
|
||||
|
||||
class WindowManager
|
||||
{
|
||||
@@ -65,5 +61,4 @@ public:
|
||||
static IndirectChannel decodeChannel(const QJsonObject &obj);
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,12 +3,10 @@
|
||||
#include "singletons/SettingsManager.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
void _registerSetting(std::weak_ptr<pajlada::Settings::ISettingData> setting)
|
||||
{
|
||||
_actuallyRegisterSetting(setting);
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
void _registerSetting(std::weak_ptr<pajlada::Settings::ISettingData> setting);
|
||||
|
||||
@@ -42,5 +41,4 @@ public:
|
||||
using pajlada::Settings::Setting<Type>::operator const Type;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "singletons/WindowManager.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
void GIFTimer::initialize()
|
||||
{
|
||||
@@ -27,5 +26,4 @@ void GIFTimer::initialize()
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <pajlada/signals/signal.hpp>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class GIFTimer
|
||||
{
|
||||
@@ -17,5 +16,4 @@ private:
|
||||
QTimer timer;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <ctime>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
QByteArray endline("\n");
|
||||
|
||||
@@ -132,5 +131,4 @@ QString LoggingChannel::generateDateString(const QDateTime &now)
|
||||
return now.toString("yyyy-MM-dd");
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <memory>
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
class LoggingChannel : boost::noncopyable
|
||||
{
|
||||
@@ -41,5 +40,4 @@ private:
|
||||
friend class LoggingManager;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "singletons/ResourceManager.hpp"
|
||||
|
||||
namespace chatterino {
|
||||
namespace singletons {
|
||||
|
||||
ModerationAction::ModerationAction(messages::Image *_image, const QString &_action)
|
||||
: _isImage(true)
|
||||
@@ -47,5 +46,4 @@ const QString &ModerationAction::getAction() const
|
||||
return this->action;
|
||||
}
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -4,11 +4,7 @@
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
namespace messages {
|
||||
class Image;
|
||||
} // namespace messages
|
||||
|
||||
namespace singletons {
|
||||
|
||||
class ModerationAction
|
||||
{
|
||||
@@ -30,5 +26,4 @@ private:
|
||||
QString action;
|
||||
};
|
||||
|
||||
} // namespace singletons
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user