635 + std::shared_ptr<MirPlacementStrategy> m_placementStrategy; // remove when bug lp:1407687 fixed ... 601 + //auto sharedPtr = the_placement_strategy(); - re-instate when bug lp:1407687 fixed 602 + if (m_placementStrategy.unique()) return 0; 603 + 604 + return static_cast<MirPlacementStrategy*>(m_placementStrategy.get());
Better as:
std::weak_ptr<MirPlacementStrategy> m_placementStrategy; ....
return m_placementStrategy.lock().get());
« Back to merge proposal
635 + std::shared_ ptr<MirPlacemen tStrategy> m_placementStra tegy; // remove when bug lp:1407687 fixed strategy( ); - re-instate when bug lp:1407687 fixed ategy.unique( )) return 0; cast<MirPlaceme ntStrategy* >(m_placementSt rategy. get());
...
601 + //auto sharedPtr = the_placement_
602 + if (m_placementStr
603 +
604 + return static_
Better as:
std::weak_ ptr<MirPlacemen tStrategy> m_placementStra tegy;
....
return m_placementStra tegy.lock( ).get() );