diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdbsupport/scoped_mmap.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | gdb-users/simark/clang-format.zip gdb-users/simark/clang-format.tar.gz gdb-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/scoped_mmap.h')
-rw-r--r-- | gdbsupport/scoped_mmap.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdbsupport/scoped_mmap.h b/gdbsupport/scoped_mmap.h index 456e5ce..e0c15c0 100644 --- a/gdbsupport/scoped_mmap.h +++ b/gdbsupport/scoped_mmap.h @@ -32,15 +32,13 @@ class scoped_mmap public: scoped_mmap () noexcept : m_mem (MAP_FAILED), m_length (0) {} scoped_mmap (void *addr, size_t length, int prot, int flags, int fd, - off_t offset) noexcept : m_length (length) + off_t offset) noexcept + : m_length (length) { m_mem = mmap (addr, m_length, prot, flags, fd, offset); } - ~scoped_mmap () - { - destroy (); - } + ~scoped_mmap () { destroy (); } scoped_mmap (scoped_mmap &&rhs) noexcept : m_mem (rhs.m_mem), @@ -61,7 +59,7 @@ public: } void reset (void *addr, size_t length, int prot, int flags, int fd, - off_t offset) noexcept + off_t offset) noexcept { destroy (); |