| 94 | } |
| 95 | |
| 96 | std::shared_ptr<Cel> Cel::link() const |
| 97 | { |
| 98 | ASSERT(m_data); |
| 99 | if (m_data.get() == NULL) |
| 100 | return NULL; |
| 101 | |
| 102 | if (!m_data.unique()) { |
| 103 | for (frame_t fr=0; fr<m_frame; ++fr) { |
| 104 | auto possible = m_layer->cel(fr); |
| 105 | if (possible && possible->dataRef().get() == m_data.get()) |
| 106 | return possible; |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | return NULL; |
| 111 | } |
| 112 | |
| 113 | std::size_t Cel::links() const |
| 114 | { |
no test coverage detected