Fix warnings that occured on linux using clang

This commit is contained in:
Rasmus Karlsson
2018-04-14 21:59:51 +02:00
parent 57e788422f
commit b7266b1640
21 changed files with 47 additions and 46 deletions
@@ -0,0 +1,14 @@
#include "singletons/helper/chatterinosetting.hpp"
#include "singletons/settingsmanager.hpp"
namespace chatterino {
namespace singletons {
void _registerSetting(std::weak_ptr<pajlada::Settings::ISettingData> setting)
{
_actuallyRegisterSetting(setting);
}
} // namespace singletons
} // namespace chatterino
+1 -3
View File
@@ -3,7 +3,7 @@
namespace chatterino {
namespace singletons {
static void _registerSetting(std::weak_ptr<pajlada::Settings::ISettingData> setting);
void _registerSetting(std::weak_ptr<pajlada::Settings::ISettingData> setting);
template <typename Type>
class ChatterinoSetting : public pajlada::Settings::Setting<Type>
@@ -21,8 +21,6 @@ public:
_registerSetting(this->data);
}
void saveRecall();
ChatterinoSetting &operator=(const Type &newValue)
{
assert(this->data != nullptr);
+2
View File
@@ -88,6 +88,7 @@ QString LoggingChannel::generateClosingString(const QDateTime &now) const
void LoggingChannel::appendLine(const QString &line)
{
/*
auto a1 = line.toUtf8();
auto a2 = line.toLatin1();
auto a3 = line.toLocal8Bit();
@@ -95,6 +96,7 @@ void LoggingChannel::appendLine(const QString &line)
auto a4 = line.data();
auto a5 = line.toStdString();
*/
// this->fileHandle.write(a5.c_str(), a5.length());
// this->fileHandle.write(a5.c_str(), a5.length());