From 7c575b3b3ae4aea7403f1bc78a6632cec58b8879 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Sat, 10 Sep 2011 00:48:33 +0000 Subject: Refactoring: replace a bunch of static array size computation or hardcoded constant with a template function 'arraysize(static_array)', defined in Utils.h. llvm-svn: 139444 --- lldb/source/Interpreter/OptionGroupWatchpoint.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lldb/source/Interpreter/OptionGroupWatchpoint.cpp') diff --git a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp index 6d1fcb75e5b..be1bf57f51a 100644 --- a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp +++ b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp @@ -15,6 +15,7 @@ // Project includes #include "lldb/lldb-enumerations.h" #include "lldb/Interpreter/Args.h" +#include "lldb/Utility/Utils.h" using namespace lldb; using namespace lldb_private; @@ -84,7 +85,5 @@ OptionGroupWatchpoint::GetDefinitions () uint32_t OptionGroupWatchpoint::GetNumDefinitions () { - return 1; + return arraysize(g_option_table); } - - -- cgit v1.2.3