summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-04-08 19:56:08 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-04-08 19:56:08 -0600
commitfeff57d29aa9af698d38d093fc5df0dbc2c961a8 (patch)
treee1cee136ebb15a02f66154035b35a0b45e3c638c /libs/pbd
parent20b4b4ea902083eaae3556363e176b4074409db8 (diff)
prefer initialization to assignment
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/pbd/rcu.h6
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; }