Skip to content

Conversation

@manke-cubert
Copy link
Contributor

No description provided.

inline void General::init(std::string const& settings_path, int global_loglevel, std::string logfile_name)
{
chk(cuvis_init(settings_path.c_str(), global_loglevel));
chk(cuvis_init(settings_path.c_str(), global_loglevel, logfile_name.empty() ? NULL : logfile_name.c_str()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
chk(cuvis_init(settings_path.c_str(), global_loglevel, logfile_name.empty() ? NULL : logfile_name.c_str()));
chk(cuvis_init(settings_path.c_str(), global_loglevel, logfile_name.empty() ? nullptr : logfile_name.c_str()));

I think the cleaner c++ way would be using nullptr instead of NULL

@birkholz-cubert birkholz-cubert merged commit fe3d52c into develop Jun 5, 2025
@birkholz-cubert birkholz-cubert deleted the feature/make_logfile_name_configurable branch December 22, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants