diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-08 21:15:08 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-18 06:41:36 -0400 |
commit | 91f1119528b57f94d178f0cfb12efafd0c90bbc9 (patch) | |
tree | b98c68ebf25eb4c477fa99c2548d2c8a4804a4c0 /src/Object.c | |
parent | 43a65ae23370e0f7fb427e96c6d9037d8fa1af35 (diff) | |
download | xorg-lib-libXt-91f1119528b57f94d178f0cfb12efafd0c90bbc9.tar.gz |
fixes cppcheck "style" warnings (mostly variable-scope)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Object.c')
-rw-r--r-- | src/Object.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Object.c b/src/Object.c index d5ed095..ee1ea6d 100644 --- a/src/Object.c +++ b/src/Object.c @@ -258,15 +258,15 @@ static Boolean ObjectSetValues( ArgList args, Cardinal * num_args) { - register CallbackTable offsets; - register int i; - register InternalCallbackList *ol, *nl; + CallbackTable offsets; + int i; LOCK_PROCESS; /* Compile any callback lists into internal form */ offsets = (CallbackTable) XtClass(widget)->core_class.callback_private; for (i= (int)(long) *(offsets++); --i >= 0; offsets++) { + InternalCallbackList *ol, *nl; ol = (InternalCallbackList *) ((char *) old - (*offsets)->xrm_offset - 1); nl = (InternalCallbackList *) @@ -286,9 +286,8 @@ static Boolean ObjectSetValues( static void ObjectDestroy ( register Widget widget) { - register CallbackTable offsets; - register int i; - register InternalCallbackList cl; + CallbackTable offsets; + int i; /* Remove all callbacks associated with widget */ LOCK_PROCESS; @@ -296,7 +295,7 @@ static void ObjectDestroy ( widget->core.widget_class->core_class.callback_private; for (i = (int)(long) *(offsets++); --i >= 0; offsets++) { - cl = *(InternalCallbackList *) + InternalCallbackList cl = *(InternalCallbackList *) ((char *) widget - (*offsets)->xrm_offset - 1); if (cl) XtFree((char *) cl); } |