summaryrefslogtreecommitdiffstats
path: root/Source/cmRegularExpression.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-09-10 19:37:28 (GMT)
committerBrad King <brad.king@kitware.com>2002-09-10 19:37:28 (GMT)
commiteb1ff5f968e567ea441d86eb856c3fd3fb731e4a (patch)
tree847ef654db030ff391b54bf13ea907f93f1c5dcb /Source/cmRegularExpression.h
parent929a2b18f6163f28727c42115fd8004b48b79241 (diff)
downloadCMake-eb1ff5f968e567ea441d86eb856c3fd3fb731e4a.zip
CMake-eb1ff5f968e567ea441d86eb856c3fd3fb731e4a.tar.gz
CMake-eb1ff5f968e567ea441d86eb856c3fd3fb731e4a.tar.bz2
ERR: Fixes for comeau compiler. NULL is a pointer of type void*, and cannot be compared directly with other pointer types. We use 0 instead.
Diffstat (limited to 'Source/cmRegularExpression.h')
-rw-r--r--Source/cmRegularExpression.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmRegularExpression.h b/Source/cmRegularExpression.h
index 755b54b..86417fb 100644
--- a/Source/cmRegularExpression.h
+++ b/Source/cmRegularExpression.h
@@ -280,7 +280,7 @@ private:
*/
inline cmRegularExpression::cmRegularExpression ()
{
- this->program = NULL;
+ this->program = 0;
}
/**
@@ -289,7 +289,7 @@ inline cmRegularExpression::cmRegularExpression ()
*/
inline cmRegularExpression::cmRegularExpression (const char* s)
{
- this->program = NULL;
+ this->program = 0;
compile(s);
}
@@ -335,7 +335,7 @@ inline bool cmRegularExpression::operator!= (const cmRegularExpression& r) const
*/
inline bool cmRegularExpression::is_valid () const
{
- return (this->program != NULL);
+ return (this->program != 0);
}
@@ -344,7 +344,7 @@ inline void cmRegularExpression::set_invalid ()
//#ifndef WIN32
delete [] this->program;
//#endif
- this->program = NULL;
+ this->program = 0;
}
/**