From bfc829d38dcb5b2cc201948f910201efb2ccc7f4 Mon Sep 17 00:00:00 2001 From: Jens-Andre Koch Date: Wed, 28 Mar 2012 16:59:51 +0200 Subject: [PATCH] - used CString on Info.GetHasArgs --- modules/webadmin.cpp | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/modules/webadmin.cpp b/modules/webadmin.cpp index d68e4554..d0999022 100644 --- a/modules/webadmin.cpp +++ b/modules/webadmin.cpp @@ -653,16 +653,7 @@ public: l["Name"] = Info.GetName(); l["Description"] = Info.GetDescription(); l["Wiki"] = Info.GetWikiPage(); - - if(Info.GetHasArgs()) - { - l["HasArgs"] = "true"; - } - else - { - l["HasArgs"] = "false"; - } - + l["HasArgs"] = CString(Info.GetHasArgs()); l["ArgsHelpText"] = Info.GetArgsHelpText(); if (pNetwork) { @@ -1024,16 +1015,7 @@ public: l["Name"] = Info.GetName(); l["Description"] = Info.GetDescription(); l["Wiki"] = Info.GetWikiPage(); - - if(Info.GetHasArgs()) - { - l["HasArgs"] = "true"; - } - else - { - l["HasArgs"] = "false"; - } - + l["HasArgs"] = CString(Info.GetHasArgs()); l["ArgsHelpText"] = Info.GetArgsHelpText(); CModule *pModule = NULL; @@ -1347,16 +1329,7 @@ public: l["Name"] = Info.GetName(); l["Description"] = Info.GetDescription(); l["Wiki"] = Info.GetWikiPage(); - - if(Info.GetHasArgs()) - { - l["HasArgs"] = "true"; - } - else - { - l["HasArgs"] = "false"; - } - + l["HasArgs"] = CString(Info.GetHasArgs()); l["ArgsHelpText"] = Info.GetArgsHelpText(); }