From d1c58a842196c229913f908f42e8e3799b0717fc Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 18 Jan 2021 12:05:31 +0200 Subject: Use Q_EMIT instead of emit In C++20 there are new classes that have member functions named emit(). c.f.: https://lists.qt-project.org/pipermail/development/2020-February/038812.html https://en.cppreference.com/w/cpp/io/basic_osyncstream/emit GIT_SILENT --- src/core/kconfigwatcher.cpp | 2 +- src/core/kcoreconfigskeleton.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/kconfigwatcher.cpp b/src/core/kconfigwatcher.cpp index 495195c0..f63c39c1 100644 --- a/src/core/kconfigwatcher.cpp +++ b/src/core/kconfigwatcher.cpp @@ -96,7 +96,7 @@ void KConfigWatcher::onConfigChangeNotification(const QHashmConfig->sync()) { return false; } - emit configChanged(); + Q_EMIT configChanged(); } return true; } -- cgit v1.2.1