reverted PIString[] operators

This commit is contained in:
2020-09-11 22:51:10 +03:00
parent b3a3b32a6f
commit e10ff53547

View File

@@ -100,7 +100,13 @@ public:
* or execution \a data() or \a toByteArray().\n
* Example: \snippet pistring.cpp PIString::char* */
operator const char*() {return data();}
//! Return symbol at index "pos"
PIChar operator [](const int pos) const {return at(pos);}
//! Return reference to symbol at index "pos"
PIChar & operator [](const int pos) {return PIDeque<PIChar>::operator[](pos);}
//! Compare operator
bool operator ==(const PIString & str) const;