From 488ed3c34f24826eec203347a07e43bbc6abe5be Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 29 Mar 2025 18:15:41 +1100 Subject: Use emplace_back to shorten code and avoid warning. --- win32/SurfaceD2D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/SurfaceD2D.cxx b/win32/SurfaceD2D.cxx index b49e5d6f6..fa8383a84 100644 --- a/win32/SurfaceD2D.cxx +++ b/win32/SurfaceD2D.cxx @@ -1066,7 +1066,7 @@ void ScreenLineLayout::FillTextLayoutFormats(const IScreenLine *screenLine, IDWr representationWidth = nextTab - realPt.x; } if (representationWidth > 0.0f) { - blobs.push_back(BlobInline(representationWidth)); + blobs.emplace_back(representationWidth); textLayout->SetInlineObject(&blobs.back(), textRange); }; -- cgit v1.2.3