summaryrefslogtreecommitdiff
path: root/src/TMaction.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-03-19 20:04:40 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-04-15 19:43:34 -0400
commitc131d277ef061716b97e27cccc094bf1c0ae222f (patch)
tree568a0146a115d187865fc6ad65ec9dfca5ce4de3 /src/TMaction.c
parentc66f453b4089b7af7ee14be7c5f817e8dd98be1e (diff)
eliminate casts of NULL for String* and Cardinal*, since those are unnecessary
as well as interfere with proposed const-string changes. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/TMaction.c')
-rw-r--r--src/TMaction.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/TMaction.c b/src/TMaction.c
index 37e3ef1..c9066b9 100644
--- a/src/TMaction.c
+++ b/src/TMaction.c
@@ -553,7 +553,7 @@ static void RemoveAccelerators(
XtAppWarningMsg(XtWidgetToApplicationContext(widget),
XtNtranslationError,"nullTable",XtCXtToolkitError,
"Can't remove accelerators from NULL table",
- (String *)NULL, (Cardinal *)NULL);
+ NULL, NULL);
return;
}
@@ -581,7 +581,7 @@ static void RemoveAccelerators(
XtAppWarningMsg(XtWidgetToApplicationContext(widget),
XtNtranslationError,"nullTable",XtCXtToolkitError,
"Tried to remove nonexistent accelerators",
- (String *)NULL, (Cardinal *)NULL);
+ NULL, NULL);
else {
if (!destination->core.being_destroyed)
for (i = 0; i < numXlations; i++)
@@ -855,7 +855,7 @@ void XtMenuPopupAction(
XtAppWarningMsg(app,
"invalidParameters","xtMenuPopupAction",XtCXtToolkitError,
"MenuPopup wants exactly one argument",
- (String *)NULL, (Cardinal *)NULL);
+ NULL, NULL);
UNLOCK_APP(app);
return;
}
@@ -868,7 +868,7 @@ void XtMenuPopupAction(
XtAppWarningMsg(app,
"invalidPopup","unsupportedOperation",XtCXtToolkitError,
"Pop-up menu creation is only supported on ButtonPress, KeyPress or EnterNotify events.",
- (String *)NULL, (Cardinal *)NULL);
+ NULL, NULL);
UNLOCK_APP(app);
return;
}
@@ -914,7 +914,7 @@ static void _XtMenuPopdownAction(
XtAppWarningMsg(XtWidgetToApplicationContext(widget),
"invalidParameters","xtMenuPopdown",XtCXtToolkitError,
"XtMenuPopdown called with num_params != 0 or 1",
- (String *)NULL, (Cardinal *)NULL);
+ NULL, NULL);
}
}