From 0eb6967bb22cefd3b7c36fa049a237a58ea85c30 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 2 Apr 2022 16:37:30 +0800 Subject: [PATCH] Migrate away from unsigned integer types Signed integers should be preferred in these cases. --- src/app/stacktrace.h | 2 +- src/base/search/searchpluginmanager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/stacktrace.h b/src/app/stacktrace.h index 5ba3c5d43..1b332ecf5 100644 --- a/src/app/stacktrace.h +++ b/src/app/stacktrace.h @@ -12,7 +12,7 @@ #include /** Print a demangled stack backtrace of the caller function to FILE* out. */ -static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames = 63) +static inline void print_stacktrace(FILE *out = stderr, const int max_frames = 63) { fprintf(out, "Stack trace:\n"); diff --git a/src/base/search/searchpluginmanager.h b/src/base/search/searchpluginmanager.h index 0257313d3..8b4a0efd1 100644 --- a/src/base/search/searchpluginmanager.h +++ b/src/base/search/searchpluginmanager.h @@ -36,7 +36,7 @@ #include "base/path.h" #include "base/utils/version.h" -using PluginVersion = Utils::Version; +using PluginVersion = Utils::Version; Q_DECLARE_METATYPE(PluginVersion) namespace Net