mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
InputBar: use auto type
Suggested-by: Clang-Tidy: Use auto when initializing with new to avoid duplicating the type name
This commit is contained in:
parent
313bd649dd
commit
abcbcecac1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue