Commit 245c0deb authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

TextEditor: Pass some const values by reference

Change-Id: I059ee93d986425ebf6896bfad92845246d351831
Reviewed-by: default avatarDavid Schulz <>
parent 03c1d6ee
......@@ -4782,7 +4782,7 @@ BaseTextEditorAnimator::BaseTextEditorAnimator(QObject *parent)
void BaseTextEditorAnimator::setData(QFont f, QPalette pal, const QString &text)
void BaseTextEditorAnimator::setData(const QFont &f, const QPalette &pal, const QString &text)
m_font = f;
m_palette = pal;
......@@ -92,7 +92,7 @@ public:
inline void setPosition(int position) { m_position = position; }
inline int position() const { return m_position; }
void setData(QFont f, QPalette pal, const QString &text);
void setData(const QFont &f, const QPalette &pal, const QString &text);
void draw(QPainter *p, const QPointF &pos);
QRectF rect() const;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment