Skip to content

Commit 1dbfdb2

Browse files
Do not pass non-readonly struct by reference.
1 parent c366de5 commit 1dbfdb2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/SixLabors.Fonts/Rendering/IGlyphRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public interface IGlyphRenderer
4545
/// <param name="paint">The paint definition.</param>
4646
/// <param name="fillRule">The fill rule to use when rasterizing this layer.</param>
4747
/// <param name="clipBounds">The optional clip bounds to apply when rasterizing this layer.</param>
48-
public void BeginLayer(Paint? paint, FillRule fillRule, in ClipQuad? clipBounds);
48+
public void BeginLayer(Paint? paint, FillRule fillRule, ClipQuad? clipBounds);
4949

5050
/// <summary>
5151
/// Ends the current painted layer.

src/SixLabors.Fonts/Tables/Cff/CffBoundsFinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void EndText()
6464
}
6565
}
6666

67-
public void BeginLayer(Paint? paint, FillRule fillRule, in ClipQuad? clipBounds)
67+
public void BeginLayer(Paint? paint, FillRule fillRule, ClipQuad? clipBounds)
6868
{
6969
// Do nothing.
7070
}

src/SixLabors.Fonts/Tables/Cff/TransformingGlyphRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public readonly void SetDecoration(TextDecorations textDecorations, Vector2 star
113113
private readonly Vector2 Transform(Vector2 point)
114114
=> (Vector2.Transform((point * this.scale) + this.offset, this.transform) * YInverter) + this.origin;
115115

116-
public readonly void BeginLayer(Paint? paint, FillRule fillRule, in ClipQuad? clipBounds)
116+
public readonly void BeginLayer(Paint? paint, FillRule fillRule, ClipQuad? clipBounds)
117117
=> this.renderer.BeginLayer(paint, fillRule, clipBounds);
118118

119119
public readonly void EndLayer() => this.renderer.EndLayer();

0 commit comments

Comments
 (0)