diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-15 19:59:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-16 09:29:43 +0200 |
commit | 06aaed0fd7e44f6c54331851e276dfb51dc561bb (patch) | |
tree | 4ecfa7bdec0591badc73cb5dc7a299d012436442 /vcl/source | |
parent | 523465dbcc147178188bc3446a0eccf580c001ac (diff) |
cid#1616498 COPY_INSTEAD_OF_MOVE
and
cid#1616499 COPY_INSTEAD_OF_MOVE
Change-Id: I21b089cab036902a7ba5b725a6eae0f1212f2b31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171923
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/outdev/EmphasisMarks.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/source/outdev/EmphasisMarks.cxx b/vcl/source/outdev/EmphasisMarks.cxx index 2e1d57f93d9f..5e3ab5694bb2 100644 --- a/vcl/source/outdev/EmphasisMarks.cxx +++ b/vcl/source/outdev/EmphasisMarks.cxx @@ -25,9 +25,8 @@ void OutputDevice::createEmphasisMarks( FontEmphasisMark nEmphasisMark, tools::Long nEmphasisHeight, SalLayout& rSalLayout, - std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&, bool, - const tools::Rectangle&, const tools::Rectangle&)> - aCallback) const + const std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&, bool, + const tools::Rectangle&, const tools::Rectangle&)>& rCallback) const { // tooling method to create geometry data for EmphasisMarks. It does the same // as OutputDevice::ImplDrawEmphasisMarks, but feeds the data into the @@ -91,7 +90,7 @@ void OutputDevice::createEmphasisMarks( aOutPoint.adjustY(aAdjPoint.Y() - nEmphasisHeight2); // use callback to propagate the data to where it was requested from - aCallback(aOutPoint, aShape, aEmphasisMark.IsShapePolyLine(), aEmphasisMark.GetRect1(), + rCallback(aOutPoint, aShape, aEmphasisMark.IsShapePolyLine(), aEmphasisMark.GetRect1(), aEmphasisMark.GetRect2()); } } |