Issue #77 Add class CPropertyIndexRef

This is a reference to a CPropertyIndex with
a subset of its API, and fewer dependencies.
This commit is contained in:
Mat Sutcliffe
2020-11-01 19:56:59 +00:00
parent c2ac37f552
commit ecac4bcb8c
6 changed files with 207 additions and 2 deletions

View File

@@ -32,6 +32,11 @@ namespace BlackMisc
this->parseFromString(indexes);
}
CPropertyIndex::operator CPropertyIndexRef() const
{
return CPropertyIndexRef(m_indexes);
}
CPropertyIndex CPropertyIndex::copyFrontRemoved() const
{
BLACK_VERIFY_X(!this->isEmpty(), Q_FUNC_INFO, "Empty index");