refactor: fix clang-tidy auto*, const&, and curly braces (#5083)
This commit is contained in:
@@ -433,7 +433,7 @@ size_t TextLayoutElement::getSelectionIndexCount() const
|
||||
void TextLayoutElement::paint(QPainter &painter,
|
||||
const MessageColors & /*messageColors*/)
|
||||
{
|
||||
auto app = getApp();
|
||||
auto *app = getApp();
|
||||
QString text = this->getText();
|
||||
if (text.isRightToLeft() || this->reversedNeutral)
|
||||
{
|
||||
@@ -461,7 +461,7 @@ int TextLayoutElement::getMouseOverIndex(const QPoint &abs) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto app = getApp();
|
||||
auto *app = getApp();
|
||||
|
||||
auto metrics = app->fonts->getFontMetrics(this->style_, this->scale_);
|
||||
auto x = this->getRect().left();
|
||||
@@ -495,7 +495,7 @@ int TextLayoutElement::getMouseOverIndex(const QPoint &abs) const
|
||||
|
||||
int TextLayoutElement::getXFromIndex(size_t index)
|
||||
{
|
||||
auto app = getApp();
|
||||
auto *app = getApp();
|
||||
|
||||
QFontMetrics metrics =
|
||||
app->fonts->getFontMetrics(this->style_, this->scale_);
|
||||
|
||||
Reference in New Issue
Block a user