Skip to content

Commit

Permalink
Use std::shared_ptr::use_count() instead of the deprecated unique() m…
Browse files Browse the repository at this point in the history
…ethod
  • Loading branch information
codereader committed Nov 29, 2019
1 parent 6469aa6 commit d0ba2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiant/uimanager/DialogManager.cpp
Expand Up @@ -68,7 +68,7 @@ void DialogManager::cleanupOldDialogs()
{
for (Dialogs::iterator i = _dialogs.begin(); i != _dialogs.end(); /* in-loop increment */)
{
if (i->unique())
if (i->use_count() <= 1)
{
_dialogs.erase(i++);
}
Expand Down

0 comments on commit d0ba2b1

Please sign in to comment.