Skip to content

Commit

Permalink
Refs #20523. Uncrustify.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
  • Loading branch information
MiguelCompany committed Jan 10, 2025
1 parent cd64d1e commit 58c407b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class PreprocessorContext

return std::make_pair(std::move(tmp_file), std::string(filename_buffer.data()));
}

#else
std::pair<std::ofstream, std::string> get_temporary_file() const
{
Expand Down Expand Up @@ -156,6 +157,7 @@ class PreprocessorContext
// Return the file stream and the file name
return std::make_pair(std::move(tmp_file), std::string(filename_template.begin(), filename_template.end() - 1));
}

#endif // _MSC_VER

void replace_all_string(
Expand Down Expand Up @@ -184,7 +186,10 @@ class PreprocessorContext
std::string exec(
const std::string& cmd) const
{
auto deleter = [](FILE* f) { pclose(f); };
auto deleter = [](FILE* f)
{
pclose(f);
};
std::unique_ptr<FILE, decltype(deleter)> pipe(
popen(cmd.c_str(), EPROSIMA_PLATFORM_PIPE_OPEN_FLAGS), deleter);
if (!pipe)
Expand Down

0 comments on commit 58c407b

Please sign in to comment.