Skip to content

Commit

Permalink
refactor: use queue emplace when adding an image to the nuuls image
Browse files Browse the repository at this point in the history
queue
  • Loading branch information
pajlada committed Oct 8, 2023
1 parent f3f507c commit 2e9a351
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util/NuulsUploader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ void upload(const QMimeData *source, ChannelPtr channel,
auto imageData = convertToPng(img);
if (imageData)
{
RawImageData data = {*imageData, "png", localPath};
uploadQueue.push(data);
uploadQueue.emplace(*imageData, "png", localPath);
}
else
{
Expand Down

0 comments on commit 2e9a351

Please sign in to comment.