File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,6 @@ __get_cxx_version ()
155
155
156
156
std::string ename;
157
157
std::string evalue;
158
- // bool compilation_result = false;
159
158
intptr_t output_value = 0 ;
160
159
bool hadError = false ;
161
160
@@ -245,7 +244,8 @@ __get_cxx_version ()
245
244
{
246
245
// Publish a mime bundle for the last return value if
247
246
// the semicolon was omitted.
248
- if (!config.silent && output_value != 0 && trim (blocks.back ()).back () != ' ;' ) {
247
+ if (!config.silent && output_value != 0 && trim (blocks.back ()).back () != ' ;' )
248
+ {
249
249
nl::json pub_data = mime_repr (output_value);
250
250
publish_execution_result (execution_counter, std::move (pub_data), nl::json::object ());
251
251
}
Original file line number Diff line number Diff line change 14
14
#include < locale>
15
15
#include < string>
16
16
17
- #include " clang/Interpreter/CppInterOp.h" // from CppInterOp package
17
+ #include " clang/Interpreter/CppInterOp.h" // from CppInterOp package
18
18
19
19
#include < nlohmann/json.hpp>
20
20
@@ -53,9 +53,12 @@ namespace xcpp
53
53
54
54
void * mimeReprV_ptr = reinterpret_cast <void *>(V);
55
55
56
- if (!hadError && mimeReprV_ptr) {
56
+ if (!hadError && mimeReprV_ptr)
57
+ {
57
58
return *(nl::json*) mimeReprV_ptr;
58
- } else {
59
+ }
60
+ else
61
+ {
59
62
return nl::json::object ();
60
63
}
61
64
}
You can’t perform that action at this time.
0 commit comments