Skip to content

Commit 6621bc8

Browse files
committed
Use CTAD for atomic and unique_lock locals
1 parent 154c7d5 commit 6621bc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/celengine/virtualtex.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class TileLoader
104104
// unreachable in normal use.
105105
static std::atomic<bool>& shutdownFlag()
106106
{
107-
static std::atomic<bool> flag{ false };
107+
static std::atomic flag{ false };
108108
return flag;
109109
}
110110

@@ -161,7 +161,7 @@ class TileLoader
161161
{
162162
TileRequest req;
163163
{
164-
std::unique_lock<std::mutex> lock(requestsMutex);
164+
std::unique_lock lock(requestsMutex);
165165
requestsCv.wait(lock, [this] {
166166
return exitRequested || !requests.empty();
167167
});

0 commit comments

Comments
 (0)