diff options
author | Marcus Hoffmann <bubu@bubu1.eu> | 2021-12-03 01:26:19 +0100 |
---|---|---|
committer | Marcus Hoffmann <bubu@bubu1.eu> | 2021-12-03 01:37:00 +0100 |
commit | abcbcecac1cd56cbc19f4d8211b0acddecbd0e87 (patch) | |
tree | 4525d9e2f06aeacd65f981f5cc7875138858522d /src | |
parent | InputBar: use multi-arg string replacement (diff) | |
download | nheko-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.cpp | 2 |
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); |