Blame SOURCES/0001-Adapt-SAL_WARN-to-C-20-deleted-ostream-for-sal_Unico.patch

2a4ee2
From b8bb7fd853db5d0d7cc4ea9120efb1a707e46c22 Mon Sep 17 00:00:00 2001
2a4ee2
From: Stephan Bergmann <sbergman@redhat.com>
2a4ee2
Date: Tue, 3 Dec 2019 11:56:33 +0100
2a4ee2
Subject: [PATCH] Adapt SAL_WARN to C++20 deleted ostream << for sal_Unicode
2a4ee2
 (aka char16_t)
2a4ee2
2a4ee2
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1423r3.html> "char8_t
2a4ee2
backward compatibility remediation", as implemented now by 
2a4ee2
git/?p=gcc.git;a=commit;h=0c5b35933e5b150df0ab487efb2f11ef5685f713> "libstdc++:
2a4ee2
P1423R3 char8_t remediation (2/4)" for -std=c++2a, deletes operator << overloads
2a4ee2
that would print an integer rather than a (presumably expected) character.
2a4ee2
2a4ee2
Change-Id: Ic70d3e90e4b990d297e35f07379fe4952e138820
2a4ee2
Reviewed-on: https://gerrit.libreoffice.org/84321
2a4ee2
Tested-by: Jenkins
2a4ee2
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2a4ee2
---
2a4ee2
 basegfx/source/polygon/b2dsvgpolypolygon.cxx | 2 +-
2a4ee2
 starmath/source/ooxmlimport.cxx              | 4 ++--
2a4ee2
 2 files changed, 3 insertions(+), 3 deletions(-)
2a4ee2
2a4ee2
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
2a4ee2
index 2fdacad3653f..490bcd69c9a6 100644
2a4ee2
--- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx
2a4ee2
+++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
2a4ee2
@@ -648,7 +648,7 @@ namespace basegfx
2a4ee2
                     default:
2a4ee2
                     {
2a4ee2
                         SAL_WARN("basegfx", "importFromSvgD(): skipping tags in svg:d element (unknown: \""
2a4ee2
-                                << aCurrChar
2a4ee2
+                                << OUString(aCurrChar)
2a4ee2
                                 << "\")!");
2a4ee2
                         ++nPos;
2a4ee2
                         break;
2a4ee2
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
2a4ee2
index f0913f157078..731daa054120 100644
2a4ee2
--- a/starmath/source/ooxmlimport.cxx
2a4ee2
+++ b/starmath/source/ooxmlimport.cxx
2a4ee2
@@ -223,7 +223,7 @@ OUString SmOoxmlImport::handleAcc()
2a4ee2
             break;
2a4ee2
         default:
2a4ee2
             acc = "acute";
2a4ee2
-            SAL_WARN( "starmath.ooxml", "Unknown m:chr in m:acc \'" << accChr << "\'" );
2a4ee2
+            SAL_WARN( "starmath.ooxml", "Unknown m:chr in m:acc \'" << OUString(accChr) << "\'" );
2a4ee2
             break;
2a4ee2
     }
2a4ee2
     OUString e = readOMathArgInElement( M_TOKEN( e ));
2a4ee2
@@ -554,7 +554,7 @@ OUString SmOoxmlImport::handleNary()
2a4ee2
             ret = "sum";
2a4ee2
             break;
2a4ee2
         default:
2a4ee2
-            SAL_WARN( "starmath.ooxml", "Unknown m:nary chr \'" << chr << "\'" );
2a4ee2
+            SAL_WARN( "starmath.ooxml", "Unknown m:nary chr \'" << OUString(chr) << "\'" );
2a4ee2
             break;
2a4ee2
     }
2a4ee2
     if( !subHide )
2a4ee2
-- 
2a4ee2
2.24.1
2a4ee2