diff options
author | Neil <nyamatongwe@gmail.com> | 2025-03-29 18:15:41 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-03-29 18:15:41 +1100 |
commit | 488ed3c34f24826eec203347a07e43bbc6abe5be (patch) | |
tree | 9d62b8db3768dc2c427d3de5f1d6df5e3f7e988d | |
parent | ba688f069206dc113d16b97a03dc3ff78497597d (diff) | |
download | scintilla-mirror-488ed3c34f24826eec203347a07e43bbc6abe5be.tar.gz |
Use emplace_back to shorten code and avoid warning.
-rw-r--r-- | win32/SurfaceD2D.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); }; |