Skip to content

Commit

Permalink
add const
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldreik committed Apr 28, 2019
1 parent b8d7091 commit 082a5cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuzzing/chrono_duration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <fmt/chrono.h>

template <typename Item, typename Ratio>
void doit_impl(const char* formatstring, Item item) {
std::chrono::duration<Item, Ratio> value(item);
void doit_impl(const char* formatstring, const Item item) {
const std::chrono::duration<Item, Ratio> value(item);
std::string message = fmt::format(formatstring, value);
}

Expand Down

0 comments on commit 082a5cb

Please sign in to comment.