summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-03-01 19:45:16 -0500
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-17 19:18:06 +0100
commitfda6d7629a7ebbcd1201a16e1be2bc21b1ca7dd9 (patch)
tree26efa61f01a0a4f2426c5b4132c166beac49bf0d /src/timeline
parentSimplify regex (diff)
downloadnheko-fda6d7629a7ebbcd1201a16e1be2bc21b1ca7dd9.tar.xz
Switch readImage to take a reference instead of a pointer
There was nowhere that an actual pointer was passed, and I wanted to do references for something else.
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/InputBar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index 3827c91a..8a5e4346 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -574,7 +574,7 @@ InputBar::showPreview(const QMimeData &source, QString path, const QStringList & auto mimeClass = mime.split("/")[0]; nhlog::ui()->debug("Mime: {}", mime.toStdString()); if (mimeClass == "image") { - QImage img = utils::readImage(&data); + QImage img = utils::readImage(data); dimensions = img.size(); if (img.height() > 200 && img.width() > 360)