theMsg(aMsg),
theCause(aCause),
al(alp),
- theLauncher(0),
+ theLauncher(nullptr),
iterations(0),
adapted(false)
{
- if (theCause != NULL)
+ if (theCause != nullptr)
HTTPMSGLOCK(theCause);
- if (theMsg != NULL)
+ if (theMsg != nullptr)
HTTPMSGLOCK(theMsg);
}
}
ServicePointer service = thePlan.current();
- Must(service != NULL);
+ Must(service != nullptr);
debugs(93,5, "using adaptation service: " << service->cfg().key);
if (Adaptation::Config::needHistory) {
if (HttpRequest *cause = dynamic_cast<HttpRequest*>(theMsg)) {
// definitely sent request, now use it as the cause
theCause = cause; // moving the lock
- theMsg = 0;
+ theMsg = nullptr;
debugs(93,3, "in request satisfaction mode");
}
}
debugs(85,5, "flags: " << srcIntact << canIgnore << adapted);
if (srcIntact) {
- if (thePlan.replacement(filter()) != NULL) {
+ if (thePlan.replacement(filter()) != nullptr) {
debugs(93,3, "trying a replacement service");
step();
return;
// the method may differ from theGroup->method due to request satisfaction
Method method = methodNone;
// temporary variables, no locking needed
- HttpRequest *req = NULL;
- HttpReply *rep = NULL;
+ HttpRequest *req = nullptr;
+ HttpReply *rep = nullptr;
if (HttpRequest *r = dynamic_cast<HttpRequest*>(theMsg)) {
method = methodReqmod;
req = r;
- rep = NULL;
+ rep = nullptr;
} else if (HttpReply *theReply = dynamic_cast<HttpReply*>(theMsg)) {
method = methodRespmod;
req = theCause;