| 171 | } |
| 172 | |
| 173 | QByteArray Declaration::comment() const |
| 174 | { |
| 175 | DUCHAIN_D(Declaration); |
| 176 | if (!d->m_comment) |
| 177 | return QByteArray(); |
| 178 | |
| 179 | return LockedItemRepository::read<DeclarationComment>([d](const Repositories::StringRepository& repo) { |
| 180 | return Repositories::arrayFromItem(repo.itemFromIndex(d->m_comment)); |
| 181 | }); |
| 182 | } |
| 183 | |
| 184 | void Declaration::setComment(const QByteArray& str) |
| 185 | { |