Skip to content

Commit bd0fe71

Browse files
style: add braces to single-line conditionals in xinterpreter.cpp
1 parent 545f0ea commit bd0fe71

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/xinterpreter.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ __get_cxx_version ()
368368
// Get include paths from environment variable and use empty string if not set
369369
const char* non_standard_paths = std::getenv("XEUS_SEARCH_PATH");
370370
if (!non_standard_paths)
371+
{
371372
non_standard_paths = "";
373+
}
372374

373375
#ifdef _WIN32
374376
const char path_separator = ';';
@@ -380,8 +382,12 @@ __get_cxx_version ()
380382
std::istringstream stream(non_standard_paths);
381383
std::string path;
382384
while (std::getline(stream, path, path_separator))
385+
{
383386
if (!path.empty())
387+
{
384388
Cpp::AddIncludePath(path.c_str());
389+
}
390+
}
385391
}
386392

387393
void interpreter::init_preamble()

0 commit comments

Comments
 (0)