diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-08 19:56:08 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-08 19:56:08 -0600 |
commit | feff57d29aa9af698d38d093fc5df0dbc2c961a8 (patch) | |
tree | e1cee136ebb15a02f66154035b35a0b45e3c638c /libs/pbd | |
parent | 20b4b4ea902083eaae3556363e176b4074409db8 (diff) |
prefer initialization to assignment
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/pbd/rcu.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/pbd/pbd/rcu.h b/libs/pbd/pbd/rcu.h index 4a42e5a3f6..6b55ee08ee 100644 --- a/libs/pbd/pbd/rcu.h +++ b/libs/pbd/pbd/rcu.h @@ -221,9 +221,8 @@ class /*LIBPBD_API*/ RCUWriter public: RCUWriter(RCUManager<T>& manager) - : m_manager(manager) { - m_copy = m_manager.write_copy(); - } + : m_manager(manager) + , m_copy (m_manager.write_copy()) {} ~RCUWriter() { if (m_copy.unique()) { @@ -246,7 +245,6 @@ public: XXX should we print a warning about this? */ } - } boost::shared_ptr<T> get_copy() const { return m_copy; } |