Skip to content

Commit

Permalink
Test clang-tidy --checks performance-inefficient-algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed May 21, 2020
1 parent 407df30 commit 158823d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Checks: -*,
,modernize-use-equals-delete,
,modernize-use-nullptr,
,modernize-use-override,
,performance-inefficient-algorithm,
,performance-unnecessary-copy-initialization,
,readability-container-size-empty,
,readability-redundant-string-cstr,
Expand Down
2 changes: 1 addition & 1 deletion CondFormats/HcalObjects/src/HBHEDarkening.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ float HBHEDarkening::degradation(float intlumi, int ieta, int lay) const {
//accumulate degradation over years
float response = 1.0;
std::string yearForLumi = getYearForLumi(intlumi);
assert(yearForLumi.size());
assert(!yearForLumi.empty());

for (const auto& year : years_) {
response *= degradationYear(year, intlumi, ieta, lay);
Expand Down
2 changes: 1 addition & 1 deletion Fireworks/Core/src/FWDialogBuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ FWLayoutBuilder &FWLayoutBuilder::indent(int left /*= 2*/, int right /* = -1*/)

/** Return the last vertical frame, for more control on the layout. */
TGVerticalFrame *FWLayoutBuilder::verticalFrame(void) {
assert(m_framesStack.size());
assert(!m_framesStack.empty());
return m_framesStack.back();
}

Expand Down

0 comments on commit 158823d

Please sign in to comment.