From fa260da979e279ba9eb8177fc499b0a618014758 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Fri, 22 Jul 2016 15:46:16 +0100 Subject: [PATCH] Define for default parameter string. --- settings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/settings.cpp b/settings.cpp index a144f3c..55e9dfe 100644 --- a/settings.cpp +++ b/settings.cpp @@ -3,6 +3,8 @@ /* Affinity. */ #define NSSM_AFFINITY_ALL _T("All") +/* Default value. */ +#define NSSM_DEFAULT_STRING _T("Default") extern const TCHAR *exit_action_strings[]; extern const TCHAR *startup_strings[]; @@ -12,7 +14,7 @@ extern const TCHAR *hook_action_strings[]; /* Does the parameter refer to the default value of the setting? */ static inline int is_default(const TCHAR *value) { - return (str_equiv(value, _T("default")) || str_equiv(value, _T("*")) || ! value[0]); + return (str_equiv(value, NSSM_DEFAULT_STRING) || str_equiv(value, _T("*")) || ! value[0]); } static int value_from_string(const TCHAR *name, value_t *value, const TCHAR *string) { -- 2.7.4