diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2021-10-27 18:01:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-04 13:20:48 (GMT) |
commit | b86b6aaa4a27009af4e1457458cf35185be00dc5 (patch) | |
tree | d8410f37e0df5aeb59bad57a6ded0961b63f1721 /Source/cmXCOFF.cxx | |
parent | 6251239a1c0f0f8342813ff800c184ca2672935b (diff) | |
download | CMake-b86b6aaa4a27009af4e1457458cf35185be00dc5.zip CMake-b86b6aaa4a27009af4e1457458cf35185be00dc5.tar.gz CMake-b86b6aaa4a27009af4e1457458cf35185be00dc5.tar.bz2 |
Source: Cleanup and simplify some code
Diffstat (limited to 'Source/cmXCOFF.cxx')
-rw-r--r-- | Source/cmXCOFF.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/cmXCOFF.cxx b/Source/cmXCOFF.cxx index 890636e..a6d278d 100644 --- a/Source/cmXCOFF.cxx +++ b/Source/cmXCOFF.cxx @@ -61,20 +61,20 @@ namespace { struct XCOFF32 { - typedef struct filehdr filehdr; - typedef struct aouthdr aouthdr; - typedef struct scnhdr scnhdr; - typedef struct ldhdr ldhdr; + using filehdr = struct filehdr; + using aouthdr = struct aouthdr; + using scnhdr = struct scnhdr; + using ldhdr = struct ldhdr; static const std::size_t aouthdr_size = _AOUTHSZ_EXEC; }; const unsigned char xcoff32_magic[] = { 0x01, 0xDF }; struct XCOFF64 { - typedef struct filehdr_64 filehdr; - typedef struct aouthdr_64 aouthdr; - typedef struct scnhdr_64 scnhdr; - typedef struct ldhdr_64 ldhdr; + using filehdr = struct filehdr_64; + using aouthdr = struct aouthdr_64; + using scnhdr = struct scnhdr_64; + using ldhdr = struct ldhdr_64; static const std::size_t aouthdr_size = _AOUTHSZ_EXEC_64; }; const unsigned char xcoff64_magic[] = { 0x01, 0xF7 }; @@ -326,8 +326,8 @@ cmXCOFF::cmXCOFF(const char* fname, Mode mode) cmXCOFF::~cmXCOFF() = default; -cmXCOFF::cmXCOFF(cmXCOFF&&) = default; -cmXCOFF& cmXCOFF::operator=(cmXCOFF&&) = default; +cmXCOFF::cmXCOFF(cmXCOFF&&) noexcept = default; +cmXCOFF& cmXCOFF::operator=(cmXCOFF&&) noexcept = default; bool cmXCOFF::Valid() const { |