From fda6d7629a7ebbcd1201a16e1be2bc21b1ca7dd9 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Mon, 1 Mar 2021 19:45:16 -0500 Subject: 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. --- src/timeline/InputBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timeline') 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) -- cgit 1.5.1