| 1088 | } |
| 1089 | |
| 1090 | Set Set::operator -(const Set& rhs) const |
| 1091 | { |
| 1092 | if (!m_tree || !rhs.m_tree) |
| 1093 | return *this; |
| 1094 | |
| 1095 | Q_ASSERT(m_repository); |
| 1096 | |
| 1097 | QMutexLocker lock(m_repository->m_mutex); |
| 1098 | |
| 1099 | SetRepositoryAlgorithms alg(m_repository->m_dataRepository, m_repository); |
| 1100 | |
| 1101 | Set ret(alg.set_subtract(m_tree, rhs.m_tree, m_repository->m_dataRepository.itemFromIndex( |
| 1102 | m_tree), m_repository->m_dataRepository.itemFromIndex(rhs.m_tree)), m_repository); |
| 1103 | ifDebug(alg.check(ret.m_tree)); |
| 1104 | return ret; |
| 1105 | } |
| 1106 | |
| 1107 | Set& Set::operator -=(const Set& rhs) |
| 1108 | { |
nothing calls this directly
no test coverage detected