mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 06:07:29 +01:00
prefer initialization to assignment
This commit is contained in:
parent
20b4b4ea90
commit
feff57d29a
1 changed files with 2 additions and 4 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue