diff options
author | Regina Pfeifer <regina@mailbox.org> | 2018-11-21 22:17:54 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2018-12-15 09:52:37 (GMT) |
commit | b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53 (patch) | |
tree | 44678a6866dac777b571e84aed52d62d286654cf /Source/cmFileLock.h | |
parent | 32cb564bea57af007d03fa31d80a0177057fc901 (diff) | |
download | CMake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.zip CMake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.tar.gz CMake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.tar.bz2 |
clang-tidy: Use default member initialization
Diffstat (limited to 'Source/cmFileLock.h')
-rw-r--r-- | Source/cmFileLock.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmFileLock.h b/Source/cmFileLock.h index 6c9a7b8..491a40b 100644 --- a/Source/cmFileLock.h +++ b/Source/cmFileLock.h @@ -51,14 +51,13 @@ private: cmFileLockResult LockWithTimeout(unsigned long timeoutSec); #if defined(_WIN32) - typedef HANDLE FileId; + HANDLE File = INVALID_HANDLE_VALUE; BOOL LockFile(DWORD flags); #else - typedef int FileId; + int File = -1; int LockFile(int cmd, int type); #endif - FileId File; std::string Filename; }; |