Skip to content

Commit

Permalink
review comment: name convention, better name
Browse files Browse the repository at this point in the history
C was for "chrono duration"
  • Loading branch information
pauldreik committed Jun 17, 2019
1 parent 63084ca commit 0a16794
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,9 @@ struct chrono_formatter {
write(second(), 2);
#if FMT_SAFE_DURATION_CAST
// convert rep->Rep
using Crep = std::chrono::duration<rep, Period>;
using CRep = std::chrono::duration<Rep, Period>;
auto tmpval = fmt_safe_duration_cast<CRep>(Crep{val});
using duration_rep = std::chrono::duration<rep, Period>;
using duration_Rep = std::chrono::duration<Rep, Period>;
auto tmpval = fmt_safe_duration_cast<duration_Rep>(duration_rep{val});
#else
auto tmpval = std::chrono::duration<Rep, Period>(val);
#endif
Expand Down

0 comments on commit 0a16794

Please sign in to comment.