@@ -203,7 +203,6 @@ void MeasureManager::saveTempModel(const path& tempDir) {
203
203
m_measureArguments.clear ();
204
204
}
205
205
206
-
207
206
boost::optional<BCLMeasure> MeasureManager::standardReportMeasure () const {
208
207
// DLM: Breaking changes in openstudio_results measures prevent us from being able to ensure
209
208
// that measure in users local BCL or remote BCL will work, just use measure in installer
@@ -974,21 +973,23 @@ void MeasureManager::checkForRemoteBCLUpdates() {
974
973
std::vector<BCLSearchResult> updates = remoteBCL.measuresWithUpdates ();
975
974
976
975
// 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 ());
986
987
987
988
int numUpdates = updates.size ();
988
989
989
990
if (numUpdates == 0 ) {
990
991
QMessageBox::information (m_app->mainWidget (), tr (" Measures Updated" ), tr (" All measures are up-to-date." ));
991
- } else {
992
+ } else {
992
993
993
994
QString text (QString::number (numUpdates) + tr (" measures have been updated on BCL compared to your local BCL directory.\n " )
994
995
+ tr (" Would you like update them?" ));
0 commit comments