From 5b0bf616401624e28ba1c0e94e474c2da2e6350a Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 17 Apr 2012 08:01:25 +0200 Subject: qtcassert: move actual printing to separate function and enforce style This also allows simple setting of breakpoints on failed asserts. Change-Id: I6dd84cbfaf659d57e39f3447386cebc0221b2b84 Reviewed-by: Daniel Teske --- src/plugins/qtsupport/debugginghelperbuildtask.cpp | 2 +- src/plugins/qtsupport/qtversionmanager.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugins/qtsupport') diff --git a/src/plugins/qtsupport/debugginghelperbuildtask.cpp b/src/plugins/qtsupport/debugginghelperbuildtask.cpp index 0884933b52..eccf0d37d0 100644 --- a/src/plugins/qtsupport/debugginghelperbuildtask.cpp +++ b/src/plugins/qtsupport/debugginghelperbuildtask.cpp @@ -129,7 +129,7 @@ DebuggingHelperBuildTask::DebuggingHelperBuildTask(const BaseQtVersion *version, DebuggingHelperBuildTask::Tools DebuggingHelperBuildTask::availableTools(const BaseQtVersion *version) { - QTC_ASSERT(version, return 0; ) + QTC_ASSERT(version, return 0); // Check the build requirements of the tools DebuggingHelperBuildTask::Tools tools = 0; // Gdb helpers are needed on Mac/gdb only. diff --git a/src/plugins/qtsupport/qtversionmanager.cpp b/src/plugins/qtsupport/qtversionmanager.cpp index b1472aad82..d5c086350b 100644 --- a/src/plugins/qtsupport/qtversionmanager.cpp +++ b/src/plugins/qtsupport/qtversionmanager.cpp @@ -56,12 +56,13 @@ # include #endif +#include +#include #include +#include #include #include -#include #include -#include #include -- cgit v1.2.1