Skip to content

Commit

Permalink
Merge pull request cms-sw#22806 from panwarlsweet/fix_c++_warnings
Browse files Browse the repository at this point in the history
change in the code to remove warnings
  • Loading branch information
cmsbuild committed Apr 4, 2018
2 parents a7b75a2 + 1071766 commit 7af7aa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CondTools/BTau/src/BTagCalibrationReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ BTagCalibrationReader::BTagCalibrationReaderImpl::BTagCalibrationReaderImpl(
<< "Every otherSysType should only be given once. Duplicate: "
<< ost;
}
otherSysTypeReaders_[ost] = std::auto_ptr<BTagCalibrationReaderImpl>(
otherSysTypeReaders_[ost] = std::unique_ptr<BTagCalibrationReaderImpl>(
new BTagCalibrationReaderImpl(op, ost)
);
}
Expand Down
4 changes: 2 additions & 2 deletions CondTools/BTau/test/BTagCalibrationStandalone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ std::cerr << "ERROR in BTagCalibration: "
<< ost;
throw std::exception();
}
otherSysTypeReaders_[ost] = std::auto_ptr<BTagCalibrationReaderImpl>(
otherSysTypeReaders_[ost] = std::unique_ptr<BTagCalibrationReaderImpl>(
new BTagCalibrationReaderImpl(op, ost)
);
}
Expand All @@ -443,7 +443,7 @@ void BTagCalibrationReader::BTagCalibrationReaderImpl::load(
BTagEntry::JetFlavor jf,
std::string measurementType)
{
if (tmpData_[jf].size()) {
if (!tmpData_[jf].empty()) {
std::cerr << "ERROR in BTagCalibration: "
<< "Data for this jet-flavor is already loaded: "
<< jf;
Expand Down

0 comments on commit 7af7aa4

Please sign in to comment.