sw/source/core/text/porlay.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8dcf53b3d2c0e30317c1e247f01d07ab448ec1ae Author: Michael Stahl <michael.st...@allotropia.de> AuthorDate: Fri Oct 21 20:29:04 2022 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Fri Oct 21 23:54:16 2022 +0200 sw: fix my MSVC build It barfs up an inscrutable 10 line error message apparently because of the parentheses around the parameter names. Change-Id: I350d4973a016e824e46d147ffad93a1ad36895a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141652 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx index 078b053cca7e..29080e7e785a 100644 --- a/sw/source/core/text/porlay.cxx +++ b/sw/source/core/text/porlay.cxx @@ -1967,7 +1967,7 @@ std::vector<std::tuple<SwScriptInfo::MarkKind, Color, OUString>> // mark order: ] | [ // color order: [c1 [c2 [c3 ... c3] c2] c1] sort(aColors.begin(), aColors.end(), - [](std::tuple<MarkKind, Color, OUString>(a), std::tuple<MarkKind, Color, OUString>(b)) { + [](std::tuple<MarkKind, Color, OUString> const a, std::tuple<MarkKind, Color, OUString> const b) { return (MarkKind::End == std::get<0>(a) && MarkKind::End != std::get<0>(b)) || (MarkKind::Point == std::get<0>(a) && MarkKind::Start == std::get<0>(b)) || // if both are end or start, order by color