From 9d11e5d4b40feac2272c2a58c714c4902eb1b6e5 Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Sun, 5 May 2019 17:20:44 +0200 Subject: Get rid of ugly static_cast usages in connect() calls --- src/trash/dolphintrash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/trash/dolphintrash.cpp') diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index e4a2d947c..957091e54 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -40,7 +40,7 @@ Trash::Trash() bool isTrashEmpty = m_trashDirLister->items().isEmpty(); emit emptinessChanged(isTrashEmpty); }; - connect(m_trashDirLister, static_cast(&KDirLister::completed), this, trashDirContentChanged); + connect(m_trashDirLister, QOverload<>::of(&KCoreDirLister::completed), this, trashDirContentChanged); connect(m_trashDirLister, &KDirLister::itemsDeleted, this, trashDirContentChanged); m_trashDirLister->openUrl(QUrl(QStringLiteral("trash:/"))); } -- cgit v1.3