diff --git a/net/http/inc/TRootSniffer.h b/net/http/inc/TRootSniffer.h index 5c8e7a1d0afc283860e4dd3ba107e64f1bb24f79..3a8800fefe399b9b56a96f1d2a26db74cdb73d27 100644 --- a/net/http/inc/TRootSniffer.h +++ b/net/http/inc/TRootSniffer.h @@ -43,8 +43,8 @@ protected: UInt_t fMask{0}; ///<! defines operation kind const char *fSearchPath{nullptr}; ///<! current path searched Int_t fLevel{0}; ///<! current level of hierarchy - TString fItemName{}; ///<! name of current item - TList fItemsNames{}; ///<! list of created items names, need to avoid duplication + TString fItemName; ///<! name of current item + TList fItemsNames; ///<! list of created items names, need to avoid duplication Int_t fRestriction{0}; ///<! restriction 0 - default, 1 - read-only, 2 - full access TRootSnifferStore *fStore{nullptr}; ///<! object to store results diff --git a/net/http/src/TRootSniffer.cxx b/net/http/src/TRootSniffer.cxx index 3130fe6026aaa351ccca0c8442686567c1fb3357..0515951dcb766ecccd7a4f4aa1834368c74cb5fc 100644 --- a/net/http/src/TRootSniffer.cxx +++ b/net/http/src/TRootSniffer.cxx @@ -760,7 +760,7 @@ void TRootSniffer::ScanObjectChilds(TRootSnifferScanRec &rec, TObject *obj) ScanCollection(rec, ((TFolder *)obj)->GetListOfFolders()); } else if (obj->InheritsFrom(TDirectory::Class())) { TDirectory *dir = (TDirectory *)obj; - ScanCollection(rec, dir->GetList(), 0, dir->GetListOfKeys()); + ScanCollection(rec, dir->GetList(), nullptr, dir->GetListOfKeys()); } if (rec.CanExpandItem()) { ScanObjectMembers(rec, obj->IsA(), (char *)obj); @@ -1846,7 +1846,7 @@ Bool_t TRootSniffer::RegisterCommand(const char *cmdname, const char *method, co Int_t numargs = 0; do { TString nextname = TString::Format("%sarg%d%s", "%", numargs + 1, "%"); - if (strstr(method, nextname.Data()) == 0) + if (strstr(method, nextname.Data()) == nullptr) break; numargs++; } while (numargs < 100); diff --git a/net/httpsniff/src/TRootSnifferFull.cxx b/net/httpsniff/src/TRootSnifferFull.cxx index 829cb86779b61d4c1a15e3a27e16f0fb1ef9cb4f..33b7df6c47e0c114d9038f6afc173a4bb48465a4 100644 --- a/net/httpsniff/src/TRootSnifferFull.cxx +++ b/net/httpsniff/src/TRootSnifferFull.cxx @@ -41,7 +41,6 @@ #include "THttpCallArg.h" #include <stdlib.h> -#include <vector> #include <string.h> //////////////////////////////////////////////////////////////////////////