From c21e842007dfcf561bd31ba97d1fcc43acce9cb3 Mon Sep 17 00:00:00 2001 From: Vittorio Romeo Date: Fri, 19 Nov 2021 20:38:07 +0000 Subject: [PATCH] Fix useless temporary `sf::Lock` --- src/SFML/System/Android/ResourceStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/System/Android/ResourceStream.cpp b/src/SFML/System/Android/ResourceStream.cpp index 93280aa67..2dd24a206 100644 --- a/src/SFML/System/Android/ResourceStream.cpp +++ b/src/SFML/System/Android/ResourceStream.cpp @@ -41,7 +41,7 @@ ResourceStream::ResourceStream(const std::string& filename) : m_file (NULL) { ActivityStates* states = getActivity(NULL); - Lock(states->mutex); + Lock lock(states->mutex); m_file = AAssetManager_open(states->activity->assetManager, filename.c_str(), AASSET_MODE_UNKNOWN); }