summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeGUI/CatchShow.h
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2023-01-18 17:46:53 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-18 21:20:47 (GMT)
commit33abef7416401b7db9f5f68cee447b4246310e72 (patch)
tree4639cca017838624bfb38c9d82eb34266a28b0c8 /Tests/CMakeGUI/CatchShow.h
parent57221fd56f77d32703aadada435d9a8f0dc3fb6c (diff)
downloadCMake-33abef7416401b7db9f5f68cee447b4246310e72.zip
CMake-33abef7416401b7db9f5f68cee447b4246310e72.tar.gz
CMake-33abef7416401b7db9f5f68cee447b4246310e72.tar.bz2
Revise C++ coding style using clang-format-15
Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 15. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Fixes: #24315
Diffstat (limited to 'Tests/CMakeGUI/CatchShow.h')
-rw-r--r--Tests/CMakeGUI/CatchShow.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Tests/CMakeGUI/CatchShow.h b/Tests/CMakeGUI/CatchShow.h
index 0254c15..7d370b6 100644
--- a/Tests/CMakeGUI/CatchShow.h
+++ b/Tests/CMakeGUI/CatchShow.h
@@ -30,12 +30,13 @@ void CatchShow::setCallback(F&& func)
this->m_callback = [this, func](QObject* obj) {
auto* d = qobject_cast<T*>(obj);
if (d) {
- QMetaObject::invokeMethod(obj,
- [this, func, d]() {
- ++this->m_count;
- func(d);
- },
- Qt::QueuedConnection);
+ QMetaObject::invokeMethod(
+ obj,
+ [this, func, d]() {
+ ++this->m_count;
+ func(d);
+ },
+ Qt::QueuedConnection);
}
};
}