Skip to content

Commit

Permalink
pass Config by const reference to quill::configure()
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulcat authored and odygrd committed Jun 23, 2023
1 parent 9f1de09 commit e18443b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quill/include/quill/Quill.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ QUILL_ATTRIBUTE_COLD inline void preallocate()
* @param config configuration
* @note Has to be called before quill::start()
*/
QUILL_ATTRIBUTE_COLD void configure(Config& config);
QUILL_ATTRIBUTE_COLD void configure(Config const& config);

/**
* Starts the backend thread to write the logs to the handlers.
Expand Down
2 changes: 1 addition & 1 deletion quill/src/Quill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace quill
Logger* _g_root_logger = nullptr;

/***/
QUILL_ATTRIBUTE_COLD void configure(Config& config)
QUILL_ATTRIBUTE_COLD void configure(Config const& config)
{
if (detail::LogManagerSingleton::instance().log_manager().backend_worker_is_running())
{
Expand Down

0 comments on commit e18443b

Please sign in to comment.