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 {
// These variables are only used from the main thread.
auto uploadMutex = QMutex();
std::queue<RawImageData> uploadQueue;
static auto uploadMutex = QMutex();
static std::queue<RawImageData> uploadQueue;
void uploadImageToNuuls(RawImageData imageData, ChannelPtr channel,
ResizingTextEdit &textEdit)
{
const static char *boundary = "thisistheboudaryasd";
const static char *const boundary = "thisistheboudaryasd";
const static QString contentType =
QString("multipart/form-data; boundary=%1").arg(boundary);
static QUrl url(Env::get().imageUploaderUrl);