loplugin:constparam in drawinglayer

Change-Id: I7921dc085e348945f8f14c12a15ed6c5414f298e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183294
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2025-03-25 12:50:13 +02:00
parent 70638097be
commit 8b21dd5ce3
4 changed files with 4 additions and 4 deletions

View File

@@ -374,7 +374,7 @@ TextLayouterDevice::getSalLayout(const OUString& rText, sal_uInt32 nIndex, sal_u
}
void TextLayouterDevice::createEmphasisMarks(
SalLayout& rSalLayout, TextEmphasisMark aTextEmphasisMark, bool bAbove,
const SalLayout& rSalLayout, TextEmphasisMark aTextEmphasisMark, bool bAbove,
const std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&, bool,
const tools::Rectangle&, const tools::Rectangle&)>& rCallback) const
{

View File

@@ -351,7 +351,7 @@ void TextSimplePortionPrimitive2D::createTextLayouter(TextLayouterDevice& rTextL
}
std::unique_ptr<SalLayout>
TextSimplePortionPrimitive2D::createSalLayout(TextLayouterDevice& rTextLayouter) const
TextSimplePortionPrimitive2D::createSalLayout(const TextLayouterDevice& rTextLayouter) const
{
// As mentioned above we can act in the
// Text's local coordinate system without transformation at all

View File

@@ -122,7 +122,7 @@ public:
const KernArray& rDXArray,
std::span<const sal_Bool> pKashidaAry) const;
void createEmphasisMarks(
SalLayout& rSalLayout, TextEmphasisMark aTextEmphasisMark, bool bAbove,
const SalLayout& rSalLayout, TextEmphasisMark aTextEmphasisMark, bool bAbove,
const std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&, bool,
const tools::Rectangle&, const tools::Rectangle&)>& rCallback)
const;

View File

@@ -146,7 +146,7 @@ public:
// and decompose. NOTE: the TextLayouterDevice is filled, but should always only
// be used temporary (do not try to buffer)
void createTextLayouter(TextLayouterDevice& rTextLayouter) const;
std::unique_ptr<SalLayout> createSalLayout(TextLayouterDevice& rTextLayouter) const;
std::unique_ptr<SalLayout> createSalLayout(const TextLayouterDevice& rTextLayouter) const;
/// constructor
TextSimplePortionPrimitive2D(basegfx::B2DHomMatrix aNewTransform, OUString aText,