summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAustin Henriksen <austin@zeroc.com>2020-12-14 12:04:25 -0500
committerAustin Henriksen <austin@zeroc.com>2020-12-14 12:04:25 -0500
commitef9f353d3a90b5325700b8d14d9f3e54920d5a36 (patch)
tree5ccef25d543e8c05d0919511071a5a1eb3ef2db8 /cpp/src
parentBump ini from 1.3.5 to 1.3.7 in /js (#1193) (diff)
downloadice-ef9f353d3a90b5325700b8d14d9f3e54920d5a36.tar.bz2
ice-ef9f353d3a90b5325700b8d14d9f3e54920d5a36.tar.xz
ice-ef9f353d3a90b5325700b8d14d9f3e54920d5a36.zip
Removed u8 qualifier from string constants in slice2cpp.
This fixes #1179.
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 7790ec60bf2..94ced867a5c 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\"" : "u8\"");
+ out << (wide ? "L\"" : "\"");
out << toStringLiteral(value, "\a\b\f\n\r\t\v", "?", UCN, cpp11 ? 0 : 0x9F + 1);
out << "\"";
}