summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-11-26 16:09:53 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-11-26 16:09:53 +0100
commit233a8a5dadf2774fa16f71428d2d4046f23050b0 (patch)
treeab4c4cc27d1d10bed5566c4a569b799d16082fa3 /src/timeline/InputBar.cpp
parentMerge pull request #341 from Kirillpt/issue_329 (diff)
downloadnheko-233a8a5dadf2774fa16f71428d2d4046f23050b0.tar.xz
Fix variable shadowing
Diffstat (limited to '')
-rw-r--r--src/timeline/InputBar.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index 46bbd9a2..853fb262 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -526,17 +526,17 @@ InputBar::showPreview(const QMimeData &source, QString path, const QStringList &
                           dimensions = img.size();
                           if (img.height() > 200 && img.width() > 360)
                                   img = img.scaled(360, 200, Qt::KeepAspectRatioByExpanding);
-                          std::vector<unsigned char> data;
+                          std::vector<unsigned char> data_;
                           for (int y = 0; y < img.height(); y++) {
                                   for (int x = 0; x < img.width(); x++) {
                                           auto p = img.pixel(x, y);
-                                          data.push_back(static_cast<unsigned char>(qRed(p)));
-                                          data.push_back(static_cast<unsigned char>(qGreen(p)));
-                                          data.push_back(static_cast<unsigned char>(qBlue(p)));
+                                          data_.push_back(static_cast<unsigned char>(qRed(p)));
+                                          data_.push_back(static_cast<unsigned char>(qGreen(p)));
+                                          data_.push_back(static_cast<unsigned char>(qBlue(p)));
                                   }
                           }
                           blurhash = QString::fromStdString(
-                            blurhash::encode(data.data(), img.width(), img.height(), 4, 3));
+                            blurhash::encode(data_.data(), img.width(), img.height(), 4, 3));
                   }
 
                   http::client()->upload(