diff options
| author | 2025-03-01 16:06:32 +0000 | |
|---|---|---|
| committer | 2025-03-01 16:06:32 +0000 | |
| commit | 32a127d2e0c0a624d12cf9570905fec264554550 (patch) | |
| tree | cdb0a259159753d4479ae36799256d1d807779d0 /src/modules/m_dnsbl.cpp | |
| parent | Release v4.6.0. (diff) | |
Avoid the use of ConvToStr in string concatenation.
This function calls INSP_FORMAT in most cases nowadays so we may
as well just call that manually.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
| -rw-r--r-- | src/modules/m_dnsbl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 18bd199ae..7b8e47417 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -710,9 +710,9 @@ public: dnsbl->name, dnsbl->stats_hits, dnsbl->stats_misses, dnsbl->stats_errors)); } - stats.AddGenericRow("Total DNSBL hits: " + ConvToStr(total_hits)); - stats.AddGenericRow("Total DNSBL misses: " + ConvToStr(total_misses)); - stats.AddGenericRow("Total DNSBL errors: " + ConvToStr(total_errors)); + stats.AddGenericRow(INSP_FORMAT("Total DNSBL hits: {}", total_hits)); + stats.AddGenericRow(INSP_FORMAT("Total DNSBL misses: {}", total_misses)); + stats.AddGenericRow(INSP_FORMAT("Total DNSBL errors: {}", total_errors)); return MOD_RES_DENY; } }; |
