vcl/win/gdi/salfont.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8f02166a8f338e491def8a36825b70485c50f5e9 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Fri Aug 1 09:37:02 2025 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Fri Aug 1 11:57:15 2025 +0200 Use std::end here Change-Id: Ied0914ced28d4ce900a64cfc1a9ed3e1310a75e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188739 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Jenkins diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index 93e027ba4028..d7087228b917 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -448,7 +448,7 @@ static FontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXW& rEnumFont // use the face's style name only if it looks reasonable const wchar_t* pStyleName = rEnumFont.elfStyle; - const wchar_t* pEnd = pStyleName + sizeof(rEnumFont.elfStyle)/sizeof(*rEnumFont.elfStyle); + const wchar_t* pEnd = std::end(rEnumFont.elfStyle); const wchar_t* p = pStyleName; for(; *p && (p < pEnd); ++p ) if( *p < 0x0020 )