diff --git a/map/framework.cpp b/map/framework.cpp index d1a170a8ec..339597c69b 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -486,10 +486,11 @@ void Framework::OnMapDeregistered(platform::LocalCountryFile const & localFile) m_storage.DeleteCustomCountryVersion(localFile); } -bool Framework::HasUnsavedChanges(storage::TCountryId const & countryId) +bool Framework::HasUnsavedEdits(storage::TCountryId const & countryId) { bool hasUnsavedChanges = false; - auto forEachInSubtree = [&hasUnsavedChanges](storage::TCountryId const & /* descendantId */, bool groupNode) + auto const forEachInSubtree = [&hasUnsavedChanges](storage::TCountryId const & /* descendantId */, + bool groupNode) { if (!groupNode) { diff --git a/map/framework.hpp b/map/framework.hpp index 56fb66c4b8..125001eb9b 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -174,9 +174,9 @@ public: void ReleaseWatchFrameRenderer(); bool IsWatchFrameRendererInited() const; - /// \returns true if there's unsaved changes in map with |countryId| and false otherwise. + /// \returns true if there're unsaved changes in map with |countryId| and false otherwise. /// \note It works for group and leaf node. - bool HasUnsavedChanges(storage::TCountryId const & countryId); + bool HasUnsavedEdits(storage::TCountryId const & countryId); /// Registers all local map files in internal indexes. void RegisterAllMaps();