Skip to content

Commit 223964d

Browse files
committed
Clang format
1 parent 65d6505 commit 223964d

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/shared_gui_components/MeasureManager.cpp

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ void MeasureManager::saveTempModel(const path& tempDir) {
203203
m_measureArguments.clear();
204204
}
205205

206-
207206
boost::optional<BCLMeasure> MeasureManager::standardReportMeasure() const {
208207
// DLM: Breaking changes in openstudio_results measures prevent us from being able to ensure
209208
// that measure in users local BCL or remote BCL will work, just use measure in installer
@@ -974,21 +973,23 @@ void MeasureManager::checkForRemoteBCLUpdates() {
974973
std::vector<BCLSearchResult> updates = remoteBCL.measuresWithUpdates();
975974

976975
// remove false updates (e.g. measure was updated after downloading from bcl due to incorrect sha)
977-
updates.erase(std::remove_if(updates.begin(), updates.end(), [this](const BCLSearchResult& update) {
978-
auto current = m_bclMeasures.find(toUUID(update.uid()));
979-
if (current != m_bclMeasures.end()) {
980-
if (update.versionModified() && current->second.versionModified()) {
981-
return update.versionModified().get() < current->second.versionModified().get();
982-
}
983-
}
984-
return false;
985-
}), updates.end());
976+
updates.erase(std::remove_if(updates.begin(), updates.end(),
977+
[this](const BCLSearchResult& update) {
978+
auto current = m_bclMeasures.find(toUUID(update.uid()));
979+
if (current != m_bclMeasures.end()) {
980+
if (update.versionModified() && current->second.versionModified()) {
981+
return update.versionModified().get() < current->second.versionModified().get();
982+
}
983+
}
984+
return false;
985+
}),
986+
updates.end());
986987

987988
int numUpdates = updates.size();
988989

989990
if (numUpdates == 0) {
990991
QMessageBox::information(m_app->mainWidget(), tr("Measures Updated"), tr("All measures are up-to-date."));
991-
} else {
992+
} else {
992993

993994
QString text(QString::number(numUpdates) + tr(" measures have been updated on BCL compared to your local BCL directory.\n")
994995
+ tr("Would you like update them?"));

0 commit comments

Comments
 (0)