diff options
author | Austin Henriksen <austin@zeroc.com> | 2020-12-14 14:56:17 -0500 |
---|---|---|
committer | Austin Henriksen <austin@zeroc.com> | 2020-12-14 14:56:17 -0500 |
commit | 757eb986a01acbe21633319d77afa6e6adbe43c6 (patch) | |
tree | 61a3d173fc0856fa771e5847a8220c655d717f6d /cpp/src | |
parent | Removed u8 qualifier from string constants in slice2cpp. (diff) | |
download | ice-757eb986a01acbe21633319d77afa6e6adbe43c6.tar.bz2 ice-757eb986a01acbe21633319d77afa6e6adbe43c6.tar.xz ice-757eb986a01acbe21633319d77afa6e6adbe43c6.zip |
Revert "Removed u8 qualifier from string constants in slice2cpp."
This reverts commit ef9f353d3a90b5325700b8d14d9f3e54920d5a36.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 94ced867a5c..7790ec60bf2 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -108,7 +108,7 @@ writeConstantValue(IceUtilInternal::Output& out, const TypePtr& type, const Synt bool wide = (typeContext & TypeContextUseWstring) || findMetaData(metaData) == "wstring"; if(wide || cpp11) { - out << (wide ? "L\"" : "\""); + out << (wide ? "L\"" : "u8\""); out << toStringLiteral(value, "\a\b\f\n\r\t\v", "?", UCN, cpp11 ? 0 : 0x9F + 1); out << "\""; } |