Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–111 unchanged (111 lines)
112 unpacker.SetArgs(std::move(args));
113
114 int ec = unpacker.Execute();
115
116 if (ec < 0)
117 {
118 return "Failed to unpack " + filename + ". Make sure that path to 7-Zip is valid.";
119 }
120
121 if (ec > 0)
122 {
123 return "Failed to unpack " + filename + ". " + UnpackController::DecodeSevenZipExitCode(ec);
124 }
…lines 125–388 unchanged (264 lines)

After

…lines 1–111 unchanged (111 lines)
112 unpacker.SetArgs(std::move(args));
113
114 int ec = unpacker.Execute();
115
116 if (ec < 0)
117 {
118 return "Failed to unpack " + filename + ". Make sure that the path to 7-Zip is valid.";
119 }
120
121 if (ec > 0)
122 {
123 return "Failed to unpack " + filename + ". " + UnpackController::DecodeSevenZipExitCode(ec);
124 }
…lines 125–388 unchanged (264 lines)

Before

translation_unit
comment "/*\n * This file is part of nzbget. See <https://nzbget.com>"...
preproc_include
#include "#include"
string_literal
" "\""
string_content "nzbget.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<algorithm>"
preproc_include
#include "#include"
string_literal
" "\""
string_content "Util.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "FileSystem.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "NString.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "Unpack.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "ExtensionLoader.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "ExtensionManager.h"
" "\""
namespace_definition
namespace "namespace"
namespace_identifier "ExtensionManager"
declaration_list
{ "{"
function_definition (+44 nodes collapsed)
function_definition (+242 nodes collapsed)
function_definition (+276 nodes collapsed)
function_definition
qualified_identifier
namespace_identifier "boost"
:: "::"
template_type
type_identifier "optional"
template_argument_list
< "<"
type_descriptor
qualified_identifier
namespace_identifier "std"
:: "::"
type_identifier "string"
> ">"
function_declarator (+29 nodes collapsed)
compound_statement
{ "{"
if_statement (+42 nodes collapsed)
declaration
type_identifier "UnpackController"
identifier "unpacker"
; ";"
declaration
qualified_identifier
namespace_identifier "std"
:: "::"
type_identifier "string"
init_declarator
identifier "outputDir"
= "="
binary_expression
string_literal
" "\""
string_content "-o"
" "\""
+ "+"
identifier "dest"
; ";"
declaration (+49 nodes collapsed)
expression_statement
call_expression
field_expression
identifier "unpacker"
. "."
field_identifier "SetArgs"
argument_list
( "("
call_expression
qualified_identifier
namespace_identifier "std"
:: "::"
identifier "move"
argument_list
( "("
identifier "args"
) ")"
) ")"
; ";"
declaration
primitive_type "int"
init_declarator
identifier "ec"
= "="
call_expression
field_expression
identifier "unpacker"
. "."
field_identifier "Execute"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
condition_clause
( "("
binary_expression
identifier "ec"
< "<"
number_literal "0"
) ")"
compound_statement
{ "{"
return_statement
return "return"
binary_expression
binary_expression
string_literal
" "\""
string_content "Failed to unpack "
" "\""
+ "+"
identifier "filename"
+ "+"
string_literal
" "\""
string_content ". Make sure that path to 7-Zip is valid."
" "\""
; ";"
} "}"
if_statement (+39 nodes collapsed)
if_statement (+36 nodes collapsed)
return_statement
return "return"
qualified_identifier
namespace_identifier "boost"
:: "::"
identifier "none"
; ";"
} "}"
function_definition (+187 nodes collapsed)
function_definition (+198 nodes collapsed)
function_definition (+289 nodes collapsed)
function_definition (+402 nodes collapsed)
function_definition (+179 nodes collapsed)
function_definition (+45 nodes collapsed)
function_definition (+517 nodes collapsed)
function_definition (+82 nodes collapsed)
function_definition (+94 nodes collapsed)
} "}"

After

translation_unit
comment "/*\n * This file is part of nzbget. See <https://nzbget.com>"...
preproc_include
#include "#include"
string_literal
" "\""
string_content "nzbget.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<algorithm>"
preproc_include
#include "#include"
string_literal
" "\""
string_content "Util.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "FileSystem.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "NString.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "Unpack.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "ExtensionLoader.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "ExtensionManager.h"
" "\""
namespace_definition
namespace "namespace"
namespace_identifier "ExtensionManager"
declaration_list
{ "{"
function_definition (+44 nodes collapsed)
function_definition (+242 nodes collapsed)
function_definition (+276 nodes collapsed)
function_definition
qualified_identifier
namespace_identifier "boost"
:: "::"
template_type
type_identifier "optional"
template_argument_list
< "<"
type_descriptor
qualified_identifier
namespace_identifier "std"
:: "::"
type_identifier "string"
> ">"
function_declarator (+29 nodes collapsed)
compound_statement
{ "{"
if_statement (+42 nodes collapsed)
declaration
type_identifier "UnpackController"
identifier "unpacker"
; ";"
declaration
qualified_identifier
namespace_identifier "std"
:: "::"
type_identifier "string"
init_declarator
identifier "outputDir"
= "="
binary_expression
string_literal
" "\""
string_content "-o"
" "\""
+ "+"
identifier "dest"
; ";"
declaration (+49 nodes collapsed)
expression_statement
call_expression
field_expression
identifier "unpacker"
. "."
field_identifier "SetArgs"
argument_list
( "("
call_expression
qualified_identifier
namespace_identifier "std"
:: "::"
identifier "move"
argument_list
( "("
identifier "args"
) ")"
) ")"
; ";"
declaration
primitive_type "int"
init_declarator
identifier "ec"
= "="
call_expression
field_expression
identifier "unpacker"
. "."
field_identifier "Execute"
argument_list
( "("
) ")"
; ";"
if_statement
if "if"
condition_clause
( "("
binary_expression
identifier "ec"
< "<"
number_literal "0"
) ")"
compound_statement
{ "{"
return_statement
return "return"
binary_expression
binary_expression
string_literal
" "\""
string_content "Failed to unpack "
" "\""
+ "+"
identifier "filename"
+ "+"
string_literal
" "\""
string_content ". Make sure that the path to 7-Zip is valid."
" "\""
; ";"
} "}"
if_statement (+39 nodes collapsed)
if_statement (+36 nodes collapsed)
return_statement
return "return"
qualified_identifier
namespace_identifier "boost"
:: "::"
identifier "none"
; ";"
} "}"
function_definition (+187 nodes collapsed)
function_definition (+198 nodes collapsed)
function_definition (+289 nodes collapsed)
function_definition (+402 nodes collapsed)
function_definition (+179 nodes collapsed)
function_definition (+45 nodes collapsed)
function_definition (+517 nodes collapsed)
function_definition (+82 nodes collapsed)
function_definition (+94 nodes collapsed)
} "}"