diff options
-rw-r--r-- | src/plugins/analyzerbase/analyzersettings.h | 10 | ||||
-rw-r--r-- | src/plugins/valgrind/valgrindsettings.cpp | 9 |
2 files changed, 9 insertions, 10 deletions
diff --git a/src/plugins/analyzerbase/analyzersettings.h b/src/plugins/analyzerbase/analyzersettings.h index 04d7999072..7b046a63e8 100644 --- a/src/plugins/analyzerbase/analyzersettings.h +++ b/src/plugins/analyzerbase/analyzersettings.h @@ -40,16 +40,6 @@ namespace Analyzer { /** - * Utility function to set @p val if @p key is present in @p map. - */ -template <typename T> void setIfPresent(const QVariantMap &map, const QString &key, T *val) -{ - if (!map.contains(key)) - return; - *val = map.value(key).template value<T>(); -} - -/** * Subclass this to add configuration to your analyzer tool. * * If global and project-specific settings differ for your tool, diff --git a/src/plugins/valgrind/valgrindsettings.cpp b/src/plugins/valgrind/valgrindsettings.cpp index 5cf6981f3b..089df9c610 100644 --- a/src/plugins/valgrind/valgrindsettings.cpp +++ b/src/plugins/valgrind/valgrindsettings.cpp @@ -76,6 +76,15 @@ namespace Internal { // ////////////////////////////////////////////////////////////////// +/** + * Utility function to set @p val if @p key is present in @p map. + */ +template <typename T> void setIfPresent(const QVariantMap &map, const QString &key, T *val) +{ + if (map.contains(key)) + *val = map.value(key).template value<T>(); +} + void ValgrindBaseSettings::fromMap(const QVariantMap &map) { // General |