Removed unnecessary get on shared pointers.

This commit is contained in:
Cranken 2018-10-06 18:59:30 +02:00 committed by pajlada
parent f13f99bb42
commit ced5508286

View file

@ -516,8 +516,8 @@ int MessageLayoutContainer::getFirstMessageCharacterIndex() const
// (no badges/timestamps/username)
int index = 0;
for (auto &element : this->elements_) {
if (element.get()->getFlags().hasAny(flags)) {
index += element.get()->getSelectionIndexCount();
if (element->getFlags().hasAny(flags)) {
index += element->getSelectionIndexCount();
} else {
break;
}