diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-07-21 18:03:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-07-21 21:32:10 +0200 |
commit | 0587c88e23b4d3d1a0504cd4c6cf1d51fa9ff498 (patch) | |
tree | 4fe0c979d3885452f64d5e98526e37450c481939 /tools/qa | |
parent | 826edb304b2c429be534d85fb8244be767ea67cf (diff) |
Fix uses of char16_t*/wchar_t* stream inserters
...that are helpfully deleted in C++20, as now implemented at least by VS 2019
16.6.4 when using --with-latest-c++
Change-Id: Iaf80f793e73fc90768bb146c9cf3d300d6747c8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99170
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'tools/qa')
-rw-r--r-- | tools/qa/cppunit/test_pathutils.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qa/cppunit/test_pathutils.cxx b/tools/qa/cppunit/test_pathutils.cxx index 1b0c57c08afd..c0a1ea5078d0 100644 --- a/tools/qa/cppunit/test_pathutils.cxx +++ b/tools/qa/cppunit/test_pathutils.cxx @@ -33,7 +33,7 @@ void buildPath( wchar_t p[MAX_PATH]; wchar_t * e = tools::buildPath( p, front, front + std::wcslen(front), back, std::wcslen(back)); - CPPUNIT_ASSERT_EQUAL(p + std::wcslen(path), e); + CPPUNIT_ASSERT_EQUAL(static_cast<void *>(p + std::wcslen(path)), static_cast<void *>(e)); CPPUNIT_ASSERT_EQUAL(0, std::wcscmp(path, p)); #else (void) front; |