Skip to content

Commit 6806dfa

Browse files
committed
[C++]: remove last vistages of sbe typedefs from codecs.
1 parent 5ab0195 commit 6806dfa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ private CharSequence generateConstPropertyMethods(
12021202
sb.append(String.format(
12031203
indent + " const char *%1$s() const\n" +
12041204
indent + " {\n" +
1205-
indent + " static sbe_uint8_t %1$sValues[] = {%2$s};\n\n" +
1205+
indent + " static std::uint8_t %1$sValues[] = {%2$s};\n\n" +
12061206
indent + " return (const char *)%1$sValues;\n" +
12071207
indent + " }\n\n",
12081208
propertyName,
@@ -1211,7 +1211,7 @@ private CharSequence generateConstPropertyMethods(
12111211
sb.append(String.format(
12121212
indent + " %1$s %2$s(const std::uint64_t index) const\n" +
12131213
indent + " {\n" +
1214-
indent + " static sbe_uint8_t %2$sValues[] = {%3$s};\n\n" +
1214+
indent + " static std::uint8_t %2$sValues[] = {%3$s};\n\n" +
12151215
indent + " return %2$sValues[index];\n" +
12161216
indent + " }\n\n",
12171217
cppTypeName,
@@ -1221,7 +1221,7 @@ private CharSequence generateConstPropertyMethods(
12211221
sb.append(String.format(
12221222
indent + " std::uint64_t get%1$s(char *dst, const std::uint64_t length) const\n" +
12231223
indent + " {\n" +
1224-
indent + " static sbe_uint8_t %2$sValues[] = {%3$s};\n" +
1224+
indent + " static std::uint8_t %2$sValues[] = {%3$s};\n" +
12251225
indent + " std::uint64_t bytesToCopy = " +
12261226
"length < sizeof(%2$sValues) ? length : sizeof(%2$sValues);\n\n" +
12271227
indent + " std::memcpy(dst, %2$sValues, bytesToCopy);\n" +

0 commit comments

Comments
 (0)