From abcbcecac1cd56cbc19f4d8211b0acddecbd0e87 Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Fri, 3 Dec 2021 01:26:19 +0100 Subject: InputBar: use auto type Suggested-by: Clang-Tidy: Use auto when initializing with new to avoid duplicating the type name --- src/timeline/InputBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timeline/InputBar.cpp') 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); -- cgit 1.4.1