summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMarcus Hoffmann <bubu@bubu1.eu>2021-12-03 01:26:19 +0100
committerMarcus Hoffmann <bubu@bubu1.eu>2021-12-03 01:37:00 +0100
commitabcbcecac1cd56cbc19f4d8211b0acddecbd0e87 (patch)
tree4525d9e2f06aeacd65f981f5cc7875138858522d /src
parentInputBar: use multi-arg string replacement (diff)
downloadnheko-abcbcecac1cd56cbc19f4d8211b0acddecbd0e87.tar.xz
InputBar: use auto type
Suggested-by:

Clang-Tidy: Use auto when initializing with new to avoid duplicating the type name
Diffstat (limited to 'src')
-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 6e1733a1..2133deb7 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -652,7 +652,7 @@ InputBar::command(const QString& command, QString args)
 void
 InputBar::showPreview(const QMimeData &source, const QString& path, const QStringList &formats)
 {
-    dialogs::PreviewUploadOverlay *previewDialog_ =
+    auto *previewDialog_ =
       new dialogs::PreviewUploadOverlay(ChatPage::instance());
     previewDialog_->setAttribute(Qt::WA_DeleteOnClose);