Skip to content

Commit

Permalink
Applied clang-tidy to FWCore
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Aug 29, 2017
1 parent 60ea8c8 commit b2d65ab
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion FWCore/Framework/interface/ESHandle.h
Expand Up @@ -44,7 +44,7 @@ class ESHandleBase {

edm::eventsetup::ComponentDescription const* description() const;

bool isValid() const { return 0 != data_ && 0 != description_; }
bool isValid() const { return nullptr != data_ && nullptr != description_; }

bool failedToGet() const { return bool(whyFailedFactory_); }

Expand Down
2 changes: 1 addition & 1 deletion FWCore/Framework/interface/NoRecordException.h
Expand Up @@ -55,7 +55,7 @@ class NoRecordException : public cms::Exception
no_record_exception_message_builder(*this,heterocontainer::className<T>(), iValue, iKnownRecord);
}

virtual ~NoRecordException() throw() {}
~NoRecordException() throw() override {}

// ---------- const member functions ---------------------

Expand Down
8 changes: 4 additions & 4 deletions FWCore/Utilities/interface/EDMException.h
Expand Up @@ -82,7 +82,7 @@ namespace edm {

Exception(Exception const& other);

virtual ~Exception() throw();
~Exception() throw() override;

void swap(Exception& other) {
std::swap(category_, other.category_);
Expand All @@ -102,12 +102,12 @@ namespace edm {
char const* message4 = "");
static void throwThis(Code category, char const* message0, int intVal, char const* message2 = "");

virtual Exception* clone() const;
Exception* clone() const override;

private:

virtual void rethrow();
virtual int returnCode_() const;
void rethrow() override;
int returnCode_() const override;

Code category_;
};
Expand Down
4 changes: 2 additions & 2 deletions FWCore/Utilities/interface/Exception.h
Expand Up @@ -84,14 +84,14 @@ namespace cms {
Exception const& another);

Exception(Exception const& other);
virtual ~Exception() throw();
~Exception() throw() override;

void swap(Exception& other);

Exception& operator=(Exception const& other);

// The signature for what() must be identical to that of std::exception::what().
virtual char const* what() const throw();
char const* what() const throw() override;

virtual std::string explainSelf() const;

Expand Down
2 changes: 1 addition & 1 deletion FWCore/Utilities/interface/TypeIDBase.h
Expand Up @@ -41,7 +41,7 @@ namespace edm {
{ }

explicit TypeIDBase(const std::type_info* t) :
t_(t == 0 ? &(typeid(Def)) : t)
t_(t == nullptr ? &(typeid(Def)) : t)
{ }

// ---------- const member functions ---------------------
Expand Down

0 comments on commit b2d65ab

Please sign in to comment.