diff options
-rw-r--r-- | libpqpp/pq-command.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp index dad2ef9..e366c51 100644 --- a/libpqpp/pq-command.cpp +++ b/libpqpp/pq-command.cpp @@ -73,6 +73,7 @@ void PQ::Command::paramSet(unsigned int n, T &&... v) { paramsAtLeast(n); + // cppcheck-suppress constStatement bufs[n] = std::make_unique<std::string>(PQCommandParamFmt::get(std::forward<T>(v)...)); lengths[n] = static_cast<int>(bufs[n]->length()); formats[n] = 0; |