mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +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;
|
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;
|
d->item_trans_base_ = trans;
|
||||||
}
|
}
|
||||||
|
@ -192,11 +192,11 @@ public:
|
|||||||
/// input item rectangle of the base view
|
/// input item rectangle of the base view
|
||||||
QRectF baseInputItemRectangle();
|
QRectF baseInputItemRectangle();
|
||||||
/// set input item rectangle of the base view
|
/// set input item rectangle of the base view
|
||||||
void setBaseInputItemRectangle(QRectF rect);
|
void setBaseInputItemRectangle(QRectF const & rect);
|
||||||
/// input item transform of the base view
|
/// input item transform of the base view
|
||||||
QTransform baseInputItemTransform();
|
QTransform baseInputItemTransform();
|
||||||
/// set input item transform of the base view
|
/// set input item transform of the base view
|
||||||
void setBaseInputItemTransform(QTransform trans);
|
void setBaseInputItemTransform(QTransform const & trans);
|
||||||
|
|
||||||
/// \name Methods to process FuncRequests
|
/// \name Methods to process FuncRequests
|
||||||
//@{
|
//@{
|
||||||
|
Loading…
Reference in New Issue
Block a user