Skip to content
Snippets Groups Projects
Commit abcbceca authored by Marcus Hoffmann's avatar Marcus Hoffmann
Browse files

InputBar: use auto type

Suggested-by:

Clang-Tidy: Use auto when initializing with new to avoid duplicating the type name
parent 313bd649
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment