prefer initialization to assignment
This commit is contained in:
parent
20b4b4ea90
commit
feff57d29a
|
@ -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…
Reference in New Issue
Block a user