@@ -49,7 +49,7 @@ server_node * find_node(int32_t target_id)
4949
5050 server_node * node = instance->find_node (target_id);
5151
52- if (node == NULL )
52+ if (node == nullptr )
5353 log_printf (" node not found: %d\n " , target_id);
5454
5555 return node;
@@ -62,7 +62,7 @@ abstract_group * find_group(int32_t target_id)
6262
6363 abstract_group * node = instance->find_group (target_id);
6464
65- if (node == NULL )
65+ if (node == nullptr )
6666 log (" node not found or not a group\n " );
6767 return node;
6868}
@@ -143,7 +143,7 @@ struct movable_string
143143 movable_string (movable_string const & rhs)
144144 {
145145 data_ = rhs.data_ ;
146- const_cast <movable_string&>(rhs).data_ = NULL ;
146+ const_cast <movable_string&>(rhs).data_ = nullptr ;
147147 }
148148
149149 ~movable_string (void )
@@ -178,7 +178,7 @@ struct movable_array
178178 {
179179 length_ = rhs.length_ ;
180180 data_ = rhs.data_ ;
181- const_cast <movable_array&>(rhs).data_ = NULL ;
181+ const_cast <movable_array&>(rhs).data_ = nullptr ;
182182 }
183183
184184 ~movable_array (void )
@@ -1066,12 +1066,12 @@ sc_synth * add_synth(const char * name, int node_id, int action, int target_id)
10661066 return 0 ;
10671067
10681068 server_node * target = find_node (target_id);
1069- if (target == NULL )
1070- return NULL ;
1069+ if (target == nullptr )
1070+ return nullptr ;
10711071
10721072 node_position_constraint pos = make_pair (target, node_position (action));
10731073 if (!node_position_sanity_check (pos))
1074- return NULL ;
1074+ return nullptr ;
10751075
10761076 abstract_synth * synth = instance->add_synth (name, node_id, pos);
10771077 if (!synth)
@@ -1214,7 +1214,7 @@ void handle_s_new(received_message const & msg)
12141214
12151215 sc_synth * synth = add_synth (def_name, id, action, target);
12161216
1217- if (synth == NULL )
1217+ if (synth == nullptr )
12181218 return ;
12191219
12201220 try {
@@ -1732,7 +1732,7 @@ void handle_n_order(received_message const & msg)
17321732
17331733 server_node * target = find_node (target_id);
17341734
1735- if (target == NULL )
1735+ if (target == nullptr )
17361736 return ;
17371737
17381738 abstract_group * target_parent;
@@ -1749,7 +1749,7 @@ void handle_n_order(received_message const & msg)
17491749 args >> node_id;
17501750
17511751 server_node * node = find_node (node_id);
1752- if (node == NULL )
1752+ if (node == nullptr )
17531753 continue ;
17541754
17551755 abstract_group * node_parent = node->get_parent ();
@@ -3164,7 +3164,7 @@ void handle_u_cmd(received_message const & msg, int size)
31643164
31653165 server_node * target_synth = find_node (node_id);
31663166
3167- if (target_synth == NULL || target_synth->is_group ())
3167+ if (target_synth == nullptr || target_synth->is_group ())
31683168 return ;
31693169
31703170 sc_synth * synth = static_cast <sc_synth*>(target_synth);
0 commit comments