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_spanningtree/capab.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_spanningtree/capab.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index 85b41f56c..43aaa5e1a 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -330,7 +330,7 @@ void TreeSocket::SendCapabilities(int phase) return; if (capab->capab_phase < 1 && phase >= 1) - WriteLine("CAPAB START " + ConvToStr(PROTO_NEWEST)); + WriteLine(INSP_FORMAT("CAPAB START {}", (uint16_t)PROTO_NEWEST)); capab->capab_phase = phase; if (phase < 2) |
