Skip to content

Commit 3abc747

Browse files
authored
Merge pull request #2487 from jwillemsen/jwi-NULL
Use nullptr instead of NULL
2 parents 7b61afa + f022749 commit 3abc747

File tree

7 files changed

+10
-35
lines changed

7 files changed

+10
-35
lines changed

ACE/ace/Activation_Queue.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ ACE_Activation_Queue::dump () const
2525
if (this->queue_)
2626
this->queue_->dump();
2727
else
28-
//FUZZ: disable check_for_NULL
29-
ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT ("(NULL)\n")));
30-
//FUZZ: enable check_for_NULL
28+
ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT ("(nullptr)\n")));
3129

3230
ACELIB_DEBUG ((LM_DEBUG, ACE_END_DUMP));
3331
#endif /* ACE_HAS_DUMP */

ACE/ace/Future.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ ACE_Future_Rep<T>::dump () const
3737
(int) this->ref_count_));
3838
ACELIB_DEBUG ((LM_INFO,"value_:\n"));
3939
if (this->value_)
40-
ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT (" (NON-NULL)\n")));
40+
ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT (" (non-nullptr)\n")));
4141
else
42-
//FUZZ: disable check_for_NULL
43-
ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT (" (NULL)\n")));
44-
//FUZZ: enable check_for_NULL
42+
ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT (" (nullptr)\n")));
4543

4644
ACELIB_DEBUG ((LM_INFO,"value_ready_:\n"));
4745
this->value_ready_.dump ();

ACE/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/http.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,11 @@ int http_start_response(Session *sn, Request *rq);
114114

115115
char **http_hdrs2env(pblock *pb);
116116

117-
//FUZZ: disable check_for_NULL
118117
/*
119118
* http_status sets status to the code n, with reason string r. If r is
120-
* NULL, the server will attempt to find one for the given status code.
119+
* nullptr, the server will attempt to find one for the given status code.
121120
* If it finds none, it will give "Because I felt like it."
122121
*/
123-
//FUZZ: enable check_for_NULL
124122

125123
#define protocol_status http_status
126124
void http_status(Session *sn, Request *rq, int n, char *r);

ACE/apps/JAWS/clients/WebSTONE/src/sysdep.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@
2929
#define MAXHOSTNAMELEN 64
3030
#endif
3131

32-
//FUZZ: disable check_for_NULL
33-
/* SunOS doesn't define NULL */
34-
#ifndef NULL
35-
#define NULL 0
36-
#endif
37-
//FUZZ: enable check_for_NULL
38-
3932
/* encapsulation of minor UNIX/WIN NT differences */
4033
#ifdef WIN32
4134
#define NETREAD(sock, buf, len) recv(sock, buf, len, 0)

ACE/tests/Network_Adapters_Test.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,11 @@ Echo_Handler::open (ACE_Reactor * const reactor,
210210
ACE_TEXT ("reactor is already set.\n")),
211211
-1);
212212

213-
//FUZZ: disable check_for_NULL
214213
if (!reactor)
215214
ACE_ERROR_RETURN ((LM_ERROR,
216-
ACE_TEXT ("(%P|%t) Echo_Handler::open - failed: NULL ")
215+
ACE_TEXT ("(%P|%t) Echo_Handler::open - failed: nullptr ")
217216
ACE_TEXT ("pointer to reactor provided.\n")),
218217
-1);
219-
//FUZZ: enable check_for_NULL
220218

221219
this->reactor (reactor);
222220
this->reply_wait_ = reply_wait;

TAO/tests/Bug_2234_Regression/server.cpp

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ class FooImpl : public POA_Test::Foo
100100
ACE_DEBUG( (LM_INFO, ". in TestString\n"));
101101
if (0 == a)
102102
{
103-
//FUZZ: disable check_for_NULL
104-
ACE_DEBUG( (LM_INFO, "* Incorrect NULL string given for parameter a\n"));
105-
//FUZZ: enable check_for_NULL
103+
ACE_DEBUG( (LM_INFO, "* Incorrect nullptr string given for parameter a\n"));
106104
throw CORBA::BAD_PARAM(0, CORBA::COMPLETED_NO);
107105
}
108106
if (1 != ACE_OS::strlen( a ))
@@ -117,9 +115,7 @@ class FooImpl : public POA_Test::Foo
117115
}
118116
if (0 == c)
119117
{
120-
//FUZZ: disable check_for_NULL
121-
ACE_DEBUG( (LM_INFO, "* Incorrect NULL string given for parameter c\n"));
122-
//FUZZ: enable check_for_NULL
118+
ACE_DEBUG( (LM_INFO, "* Incorrect nullptr string given for parameter c\n"));
123119
throw CORBA::BAD_PARAM(0, CORBA::COMPLETED_NO);
124120
}
125121
if (1 != ACE_OS::strlen( c ))
@@ -187,9 +183,7 @@ class FooImpl : public POA_Test::Foo
187183
ACE_DEBUG( (LM_INFO, ". in TestVarStruct\n"));
188184
if (0 == a.val.in())
189185
{
190-
//FUZZ: disable check_for_NULL
191-
ACE_DEBUG( (LM_INFO, "* Incorrect NULL string given for parameter a\n"));
192-
//FUZZ: enable check_for_NULL
186+
ACE_DEBUG( (LM_INFO, "* Incorrect nullptr string given for parameter a\n"));
193187
throw CORBA::BAD_PARAM(0, CORBA::COMPLETED_NO);
194188
}
195189
if (1 != ACE_OS::strlen( a.val.in() ))
@@ -204,9 +198,7 @@ class FooImpl : public POA_Test::Foo
204198
}
205199
if (0 == c.val.in())
206200
{
207-
//FUZZ: disable check_for_NULL
208-
ACE_DEBUG( (LM_INFO, "* Incorrect NULL string given for parameter c\n"));
209-
//FUZZ: enable check_for_NULL
201+
ACE_DEBUG( (LM_INFO, "* Incorrect nullptr string given for parameter c\n"));
210202
throw CORBA::BAD_PARAM(0, CORBA::COMPLETED_NO);
211203
}
212204
if (1 != ACE_OS::strlen( c.val.in() ))

TAO/tests/MProfile_Forwarding/client.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
4949

5050
if (objref.in () == 0)
5151
{
52-
//FUZZ: disable check_for_NULL
5352
ACE_ERROR_RETURN ((LM_ERROR,
54-
"The received objref is NULL\n"),
53+
"The received objref is nullptr\n"),
5554
-1);
56-
//FUZZ: enable check_for_NULL
5755
}
5856

5957
Simple_Server_var server =

0 commit comments

Comments
 (0)