@@ -709,7 +709,7 @@ void MCInterfaceEvalMouseLoc(MCExecContext& ctxt, MCStringRef& r_string)
709709
710710void MCInterfaceEvalMouseChar (MCExecContext& ctxt, MCStringRef& r_string)
711711{
712- if (MCmousestackptr != nil )
712+ if (MCmousestackptr)
713713 {
714714 MCControl *mfocused = MCmousestackptr->getcard ()->getmfocused ();
715715 if (mfocused != NULL && mfocused->gettype () == CT_FIELD)
@@ -728,7 +728,7 @@ void MCInterfaceEvalMouseChar(MCExecContext& ctxt, MCStringRef& r_string)
728728
729729void MCInterfaceEvalMouseText (MCExecContext& ctxt, MCStringRef& r_string)
730730{
731- if (MCmousestackptr != nil )
731+ if (MCmousestackptr)
732732 {
733733 MCControl *mfocused = MCmousestackptr->getcard ()->getmfocused ();
734734 if (mfocused != NULL && mfocused->gettype () == CT_FIELD)
@@ -749,7 +749,7 @@ void MCInterfaceEvalMouseText(MCExecContext& ctxt, MCStringRef& r_string)
749749
750750void MCInterfaceEvalMouseCharChunk (MCExecContext& ctxt, MCStringRef& r_string)
751751{
752- if (MCmousestackptr != nil )
752+ if (MCmousestackptr)
753753 {
754754 MCControl *mfocused = MCmousestackptr->getcard ()->getmfocused ();
755755 if (mfocused != NULL && mfocused->gettype () == CT_FIELD)
@@ -770,7 +770,7 @@ void MCInterfaceEvalMouseCharChunk(MCExecContext& ctxt, MCStringRef& r_string)
770770
771771void MCInterfaceEvalMouseChunk (MCExecContext& ctxt, MCStringRef& r_string)
772772{
773- if (MCmousestackptr != nil )
773+ if (MCmousestackptr)
774774 {
775775 MCControl *mfocused = MCmousestackptr->getcard ()->getmfocused ();
776776 if (mfocused != NULL && mfocused->gettype () == CT_FIELD)
@@ -791,7 +791,7 @@ void MCInterfaceEvalMouseChunk(MCExecContext& ctxt, MCStringRef& r_string)
791791
792792void MCInterfaceEvalMouseLine (MCExecContext& ctxt, MCStringRef& r_string)
793793{
794- if (MCmousestackptr != nil )
794+ if (MCmousestackptr)
795795 {
796796 MCControl *mfocused = MCmousestackptr->getcard ()->getmfocused ();
797797 if (mfocused != NULL && mfocused->gettype () == CT_FIELD)
@@ -813,7 +813,7 @@ void MCInterfaceEvalMouseLine(MCExecContext& ctxt, MCStringRef& r_string)
813813void MCInterfaceEvalMouseControl (MCExecContext& ctxt, MCStringRef& r_string)
814814{
815815 MCControl *t_focused = nil;
816- if (MCmousestackptr != nil )
816+ if (MCmousestackptr)
817817 t_focused = MCmousestackptr->getcard ()->getmousecontrol ();
818818
819819 if (t_focused == nil)
@@ -835,7 +835,7 @@ void MCInterfaceEvalMouseControl(MCExecContext& ctxt, MCStringRef& r_string)
835835
836836void MCInterfaceEvalMouseStack (MCExecContext& ctxt, MCStringRef& r_string)
837837{
838- if (MCmousestackptr == nil )
838+ if (! MCmousestackptr)
839839 {
840840 r_string = MCValueRetain (kMCEmptyString );
841841 return ;
@@ -1866,9 +1866,10 @@ void MCInterfaceExecClickCmd(MCExecContext& ctxt, uint2 p_button, MCPoint p_loca
18661866 MCmodifierstate = p_modifiers;
18671867 MCbuttonstate |= 0x1L << (p_button - 1 );
18681868 MCdispatcher->wmdown_stack (MCdefaultstackptr, p_button);
1869- // **** NULL POINTER FIX
1870- if (MCmousestackptr != NULL )
1869+
1870+ if (MCmousestackptr)
18711871 MCscreen->sync (MCmousestackptr->getw ());
1872+
18721873 Boolean abort = MCscreen->wait (CLICK_INTERVAL, False, False);
18731874
18741875 MCscreen->setclickloc (MCdefaultstackptr, t_view_clickloc);
@@ -2926,11 +2927,12 @@ void MCInterfaceExecPopupWidget(MCExecContext &ctxt, MCNameRef p_kind, MCPoint *
29262927
29272928void MCInterfaceExecPopupButton (MCExecContext& ctxt, MCButton *p_target, MCPoint *p_at)
29282929{
2929- if (MCmousestackptr == NULL )
2930+ if (! MCmousestackptr)
29302931 {
29312932 ctxt . LegacyThrow (EE_SUBWINDOW_NOSTACK);
29322933 return ;
29332934 }
2935+
29342936 if (p_at != nil)
29352937 {
29362938 MCmousex = p_at -> x;
@@ -2985,7 +2987,7 @@ void MCInterfaceExecSubwindow(MCExecContext& ctxt, MCStack *p_target, MCStack *p
29852987 {
29862988 MCwatchcursor = False;
29872989 p_target->resetcursor (True);
2988- if (MCmousestackptr != NULL && MCmousestackptr != p_target)
2990+ if (MCmousestackptr && MCmousestackptr != p_target)
29892991 MCmousestackptr->resetcursor (True);
29902992 }
29912993
@@ -4657,7 +4659,7 @@ void MCInterfaceExecGo(MCExecContext& ctxt, MCCard *p_card, MCStringRef p_window
46574659 MCtrace = oldtrace;
46584660 if (t_stack->getmode () == WM_TOP_LEVEL || t_stack->getmode () == WM_TOP_LEVEL_LOCKED)
46594661 MCdefaultstackptr = t_stack;
4660- if (MCmousestackptr != NULL )
4662+ if (MCmousestackptr)
46614663 MCmousestackptr->resetcursor (True);
46624664 if (MCabortscript)
46634665 stat = ES_ERROR;
0 commit comments