mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Internal changes
Add missing `static` and `const`
This commit is contained in:
parent
979bf5e74a
commit
8f076d8075
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue