diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-17 16:16:11 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-17 16:16:11 +0000 |
commit | d7ff2e0d651d6b0bc24cf2b173613d6386576bc4 (patch) | |
tree | 71a4cb0834503115ca84dc097a2b5394ac95cd99 /libpqpp/pq-column.cpp | |
parent | Modernize clang tidy fixes (diff) | |
download | libdbpp-postgresql-d7ff2e0d651d6b0bc24cf2b173613d6386576bc4.tar.bz2 libdbpp-postgresql-d7ff2e0d651d6b0bc24cf2b173613d6386576bc4.tar.xz libdbpp-postgresql-d7ff2e0d651d6b0bc24cf2b173613d6386576bc4.zip |
Enable hicpp checks and fix accordingly
Diffstat (limited to 'libpqpp/pq-column.cpp')
-rw-r--r-- | libpqpp/pq-column.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpqpp/pq-column.cpp b/libpqpp/pq-column.cpp index addd002..e743e60 100644 --- a/libpqpp/pq-column.cpp +++ b/libpqpp/pq-column.cpp @@ -71,6 +71,7 @@ PQ::Column::apply(DB::HandleField & h) const { int days = 0, hours = 0, minutes = 0, seconds = 0, fractions = 0, flen1 = 0, flen2 = 0; const char * val = value(); + // NOLINTNEXTLINE(hicpp-vararg) if (sscanf(val, "%d %*[days] %d:%d:%d.%n%d%n", &days, &hours, &minutes, &seconds, &flen1, &fractions, &flen2) >= 4) { h.interval(boost::posix_time::time_duration((24 * days) + hours, minutes, seconds, fractions * (long)pow(10, boost::posix_time::time_res_traits::num_fractional_digits() + flen1 - flen2))); |