Skip to content

Commit

Permalink
Tidy file dialog options.
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Nov 26, 2024
1 parent c51462f commit 92e9fc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nui/include/nui/filesystem/file_dialog_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Nui::FileDialog
};

// This way aggregate initialization can be done without needing to add extra braces
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define COMMON_DIALOG_OPTIONS() \
std::optional<std::string> title = std::nullopt; \
std::optional<std::filesystem::path> defaultPath = std::nullopt; \
Expand Down

0 comments on commit 92e9fc4

Please sign in to comment.