mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Pass parameters as const reference
Spotted by Coverity scan.
This commit is contained in:
parent
b39cc9ed89
commit
54b6846941
@ -2326,7 +2326,7 @@ QRectF GuiApplication::baseInputItemRectangle()
|
||||
}
|
||||
|
||||
|
||||
void GuiApplication::setBaseInputItemRectangle(QRectF rect)
|
||||
void GuiApplication::setBaseInputItemRectangle(QRectF const & rect)
|
||||
{
|
||||
d->item_rect_base_ = rect;
|
||||
}
|
||||
@ -2338,7 +2338,7 @@ QTransform GuiApplication::baseInputItemTransform()
|
||||
}
|
||||
|
||||
|
||||
void GuiApplication::setBaseInputItemTransform(QTransform trans)
|
||||
void GuiApplication::setBaseInputItemTransform(QTransform const & trans)
|
||||
{
|
||||
d->item_trans_base_ = trans;
|
||||
}
|
||||
|
@ -192,11 +192,11 @@ public:
|
||||
/// input item rectangle of the base view
|
||||
QRectF baseInputItemRectangle();
|
||||
/// set input item rectangle of the base view
|
||||
void setBaseInputItemRectangle(QRectF rect);
|
||||
void setBaseInputItemRectangle(QRectF const & rect);
|
||||
/// input item transform of the base view
|
||||
QTransform baseInputItemTransform();
|
||||
/// set input item transform of the base view
|
||||
void setBaseInputItemTransform(QTransform trans);
|
||||
void setBaseInputItemTransform(QTransform const & trans);
|
||||
|
||||
/// \name Methods to process FuncRequests
|
||||
//@{
|
||||
|
Loading…
Reference in New Issue
Block a user