mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Removed unnecessary get on shared pointers.
This commit is contained in:
parent
f13f99bb42
commit
ced5508286
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue