File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,6 @@ __get_cxx_version ()
155155
156156        std::string ename;
157157        std::string evalue;
158-         // bool compilation_result = false;
159158        intptr_t  output_value = 0 ;
160159        bool  hadError = false ;
161160
@@ -245,7 +244,8 @@ __get_cxx_version ()
245244        {
246245            //  Publish a mime bundle for the last return value if
247246            //  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+             {
249249                nl::json pub_data = mime_repr (output_value);
250250                publish_execution_result (execution_counter, std::move (pub_data), nl::json::object ());
251251            }
Original file line number Diff line number Diff line change 1414#include  < locale> 
1515#include  < string> 
1616
17- #include  " clang/Interpreter/CppInterOp.h" //  from CppInterOp package
17+ #include  " clang/Interpreter/CppInterOp.h"   //  from CppInterOp package
1818
1919#include  < nlohmann/json.hpp> 
2020
@@ -53,9 +53,12 @@ namespace xcpp
5353
5454        void * mimeReprV_ptr = reinterpret_cast <void *>(V);
5555
56-         if  (!hadError && mimeReprV_ptr) {
56+         if  (!hadError && mimeReprV_ptr)
57+         {
5758            return  *(nl::json*) mimeReprV_ptr;
58-         } else  {
59+         }
60+         else 
61+         {
5962            return  nl::json::object ();
6063        }
6164    }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments