| commit | 1567186114aa40923f46e1185ab6dcebdbae8b53 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Mon Nov 23 18:13:56 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Mon Nov 23 18:14:34 2020 -0800 |
| tree | c630482e85551f02de19e4c85597c7d8f67ae25f | |
| parent | 06677b3e003a179c0fa73efa67dbfb5dce81ed99 [diff] [blame] |
Resolve some instances of cppcoreguidelines-pro-type-member-init https://github.com/dtolnay/cxx/issues/500
diff --git a/src/cxx.cc b/src/cxx.cc index 122f6a5..c954513 100644 --- a/src/cxx.cc +++ b/src/cxx.cc
@@ -67,8 +67,7 @@ cxxbridge1$string$clone(this, other); } -String::String(String &&other) noexcept { - this->repr = other.repr; +String::String(String &&other) noexcept : repr(other.repr) { cxxbridge1$string$new(&other); }