| 1987 | // LayerPropertiesNodeRef implementation |
| 1988 | |
| 1989 | LayerPropertiesNodeRef::LayerPropertiesNodeRef (LayerPropertiesNode *node) |
| 1990 | : m_iter (node), m_synched_gen_id (0) |
| 1991 | { |
| 1992 | if (node) { |
| 1993 | |
| 1994 | // NOTE: we do assignment before we set the iterator reference - hence there won't be |
| 1995 | // updates triggered. |
| 1996 | LayerPropertiesNode::operator= (*node); |
| 1997 | |
| 1998 | // Makes ourself a perfect copy of the original (including reference into the view) |
| 1999 | attach_view (node->view (), node->list_index ()); |
| 2000 | set_parent (node->parent ()); |
| 2001 | |
| 2002 | mp_node.reset (node); |
| 2003 | |
| 2004 | } |
| 2005 | } |
| 2006 | |
| 2007 | LayerPropertiesNodeRef::LayerPropertiesNodeRef (const LayerPropertiesConstIterator &iter) |
| 2008 | : m_iter (iter), m_synched_gen_id (0) |
nothing calls this directly
no test coverage detected