Skip to content

Commit 5da5f77

Browse files
committed
[cpp] Minor fix to cpp generator output formatting.
1 parent 6aa2ed4 commit 5da5f77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private static void generateGroupClassHeader(
301301
indent + "#if __cplusplus < 201103L\n" +
302302
indent + " template<class Func> inline void forEach(Func& func)\n" +
303303
indent + " {\n" +
304-
indent + " while(hasNext())\n" +
304+
indent + " while (hasNext())\n" +
305305
indent + " {\n" +
306306
indent + " next(); func(*this);\n" +
307307
indent + " }\n" +
@@ -488,7 +488,7 @@ private CharSequence generateVarData(final String className, final List<Token> t
488488
indent + " {\n" +
489489
indent + " if (str.length() > %6$d)\n" +
490490
indent + " {\n" +
491-
indent + " throw std::runtime_error(\"std::string length too long for length type [E109]\");\n" +
491+
indent + " throw std::runtime_error(\"std::string too long for length type [E109]\");\n" +
492492
indent + " }\n" +
493493
indent + " std::uint64_t lengthOfLengthField = %3$d;\n" +
494494
indent + " std::uint64_t lengthPosition = position();\n" +

0 commit comments

Comments
 (0)