Internal changes

Add missing `static` and `const`
This commit is contained in:
Mm2PL 2020-03-29 13:47:52 +02:00
parent 979bf5e74a
commit 8f076d8075
No known key found for this signature in database
GPG key ID: 1C400DA5602DE62E

View file

@ -33,13 +33,13 @@ boost::optional<QByteArray> convertToPng(QImage image)
namespace chatterino { namespace chatterino {
// These variables are only used from the main thread. // These variables are only used from the main thread.
auto uploadMutex = QMutex(); static auto uploadMutex = QMutex();
std::queue<RawImageData> uploadQueue; static std::queue<RawImageData> uploadQueue;
void uploadImageToNuuls(RawImageData imageData, ChannelPtr channel, void uploadImageToNuuls(RawImageData imageData, ChannelPtr channel,
ResizingTextEdit &textEdit) ResizingTextEdit &textEdit)
{ {
const static char *boundary = "thisistheboudaryasd"; const static char *const boundary = "thisistheboudaryasd";
const static QString contentType = const static QString contentType =
QString("multipart/form-data; boundary=%1").arg(boundary); QString("multipart/form-data; boundary=%1").arg(boundary);
static QUrl url(Env::get().imageUploaderUrl); static QUrl url(Env::get().imageUploaderUrl);