From 22394d24f661e8535e33f2b2c66e1e34ae7c508e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 10 May 2001 12:53:16 +0000 Subject: [PATCH] NULL -> 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index f9aa7c75ea..1119b7f46a 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -500,7 +500,7 @@ wxChar *wxExpandPath(wxChar *buf, const wxChar *name) } else #else - while ((*d++ = *s) != NULL) { + while ((*d++ = *s) != 0) { # ifndef __WXMSW__ if (*s == wxT('\\')) { if ((*(d - 1) = *++s)) { @@ -520,7 +520,7 @@ wxChar *wxExpandPath(wxChar *buf, const wxChar *name) register wxChar *start = d; register int braces = (*s == wxT('{') || *s == wxT('(')); register wxChar *value; - while ((*d++ = *s) != NULL) + while ((*d++ = *s) != 0) if (braces ? (*s == wxT('}') || *s == wxT(')')) : !(wxIsalnum(*s) || *s == wxT('_')) ) break; else @@ -528,7 +528,7 @@ wxChar *wxExpandPath(wxChar *buf, const wxChar *name) *--d = 0; value = wxGetenv(braces ? start + 1 : start); if (value) { - for ((d = start - 1); (*d++ = *value++) != NULL;); + for ((d = start - 1); (*d++ = *value++) != 0;); d--; if (braces && *s) s++; @@ -580,7 +580,7 @@ wxChar *wxExpandPath(wxChar *buf, const wxChar *name) *(d - 1) = SEP; } s = nm; - while ((*d++ = *s++) != NULL); + while ((*d++ = *s++) != 0); delete[] nm_tmp; // clean up alloc /* Now clean up the buffer */ return wxRealPath(buf); -- 2.45.2