Skip to content

Commit 1dad118

Browse files
authored
[fix]fix clean code (#601) (#602)
1 parent 77ba17d commit 1dad118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ucm/store/pcstore/cc/domain/trans/trans_task.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ namespace UC {
3939
class TransTask {
4040
static size_t NextId() noexcept
4141
{
42-
static std::atomic<size_t> id{invalid + 1};
43-
return id.fetch_add(1, std::memory_order_relaxed);
42+
static std::atomic<size_t> idSeed{invalid + 1};
43+
return idSeed.fetch_add(1, std::memory_order_relaxed);
4444
};
4545
static double NowTp() noexcept
4646
{

0 commit comments

Comments
 (0)