Skip to content

Commit

Permalink
Remove last nil
Browse files Browse the repository at this point in the history
  • Loading branch information
alkino committed Aug 22, 2023
1 parent 6115073 commit b209503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/nrncvode/netcvode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3195,9 +3195,9 @@ void NetCon::pr(const char* s, double tt, NetCvode* ns) {
if (src_) {
Printf(" src=%s", src_->osrc_ ? hoc_object_name(src_->osrc_) : secname(src_->ssrc_));
} else {
Printf(" src=nil");
Printf(" src=nullptr");

Check warning on line 3198 in src/nrncvode/netcvode.cpp

View check run for this annotation

Codecov / codecov/patch

src/nrncvode/netcvode.cpp#L3198

Added line #L3198 was not covered by tests
}
Printf(" target=%s %.15g\n", (target_ ? hoc_object_name(target_->ob) : "nil"), tt);
Printf(" target=%s %.15g\n", (target_ ? hoc_object_name(target_->ob) : "nullptr"), tt);
}

void PreSyn::send(double tt, NetCvode* ns, NrnThread* nt) {
Expand Down Expand Up @@ -4994,7 +4994,7 @@ void NetCvode::p_construct(int n) {

PreSyn::PreSyn(neuron::container::data_handle<double> src, Object* osrc, Section* ssrc)
: thvar_{std::move(src)} {
// printf("Presyn %x %s\n", (long)this, osrc?hoc_object_name(osrc):"nil");
// printf("Presyn %x %s\n", (long)this, osrc?hoc_object_name(osrc):"nullptr");
PreSynSave::invalid();
hi_index_ = -1;
hi_th_ = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/nrnoc/treeset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,7 @@ static FILE* fnd;
void node_data_scaffolding(void) {
int i;
Pd(n_memb_func);
/* P "Mechanism names (first two are nil) beginning with memb_func[2]\n");*/
/* P "Mechanism names (first two are nullptr) beginning with memb_func[2]\n");*/
for (i = 2; i < n_memb_func; ++i) {
P "%s", memb_func[i].sym->name);
Pn;
Expand Down

0 comments on commit b209503

Please sign in to comment.