diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-06 20:27:39 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-06 20:27:39 (GMT) |
commit | d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8 (patch) | |
tree | a10ebfd356b5592f2e8c39e9ce35701249ce6bd7 /Source/cmFileLockResult.cxx | |
parent | ca8c3d64c8accebeacf322f0574494ffddb039c5 (diff) | |
download | CMake-d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8.zip CMake-d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8.tar.gz CMake-d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8.tar.bz2 |
clang-tidy: modernize-return-braced-init-list
Diffstat (limited to 'Source/cmFileLockResult.cxx')
-rw-r--r-- | Source/cmFileLockResult.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmFileLockResult.cxx b/Source/cmFileLockResult.cxx index 9ca5d8a..c4779f0 100644 --- a/Source/cmFileLockResult.cxx +++ b/Source/cmFileLockResult.cxx @@ -8,7 +8,7 @@ #define WINMSG_BUF_LEN (1024) cmFileLockResult cmFileLockResult::MakeOk() { - return cmFileLockResult(OK, 0); + return { OK, 0 }; } cmFileLockResult cmFileLockResult::MakeSystem() @@ -18,27 +18,27 @@ cmFileLockResult cmFileLockResult::MakeSystem() #else const Error lastError = errno; #endif - return cmFileLockResult(SYSTEM, lastError); + return { SYSTEM, lastError }; } cmFileLockResult cmFileLockResult::MakeTimeout() { - return cmFileLockResult(TIMEOUT, 0); + return { TIMEOUT, 0 }; } cmFileLockResult cmFileLockResult::MakeAlreadyLocked() { - return cmFileLockResult(ALREADY_LOCKED, 0); + return { ALREADY_LOCKED, 0 }; } cmFileLockResult cmFileLockResult::MakeInternal() { - return cmFileLockResult(INTERNAL, 0); + return { INTERNAL, 0 }; } cmFileLockResult cmFileLockResult::MakeNoFunction() { - return cmFileLockResult(NO_FUNCTION, 0); + return { NO_FUNCTION, 0 }; } bool cmFileLockResult::IsOk() const |