X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/4c04137d73637107669e02b21f890387aaa2ef34..1d904e0470fed2e5c7a867f63d39ee44dbe80a2a:/src/exim_monitor/em_TextPop.c diff --git a/src/exim_monitor/em_TextPop.c b/src/exim_monitor/em_TextPop.c index 7e8a2eba1..0360f852b 100644 --- a/src/exim_monitor/em_TextPop.c +++ b/src/exim_monitor/em_TextPop.c @@ -1,6 +1,8 @@ /*********************************************************** +Copyright (c) The Exim Maintainers 2022 Copyright 1989 by the Massachusetts Institute of Technology, Cambridge, Massachusetts. +SPDX-License-Identifier: GPL-2.0-or-later All Rights Reserved @@ -246,7 +248,7 @@ Cardinal * num_params; Arg args[1]; #ifdef notdef - if (ctx->text.source->Search == NULL) { + if (!ctx->text.source->Search) { XBell(XtDisplay(w), 0); return; } @@ -279,16 +281,15 @@ Cardinal * num_params; return; } - if (ctx->text.search== NULL) { + if (!ctx->text.search) { ctx->text.search = XtNew(struct SearchAndReplace); ctx->text.search->search_popup = CreateDialog(w, ptr, "search", AddSearchChildren); XtRealizeWidget(ctx->text.search->search_popup); SetWMProtocolTranslations(ctx->text.search->search_popup); } - else if (*num_params > 1) { + else if (*num_params > 1) XtVaSetValues(ctx->text.search->search_text, XtNstring, ptr, NULL); - } XtSetArg(args[0], XtNeditType,&edit_mode); XtGetValues(ctx->text.source, args, ONE);