Skip to content

Commit 3e3c65b

Browse files
committed
Fix conversion warning in StatusArg
+ constexpr
1 parent 940372e commit 3e3c65b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/StatusArg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
namespace {
4747
// Didn't want to bring dyn.h and friends here.
48-
const int DYN_MSG_FAC = 8;
48+
constexpr int DYN_MSG_FAC = FB_IMPL_MSG_FACILITY_DYN;
4949
}
5050

5151
namespace Firebird {
@@ -166,7 +166,7 @@ void StatusVector::ImplStatusVector::putStrArg(unsigned startWith)
166166
m_strings.append(1, '\0');
167167
}
168168
else
169-
m_strings.append(*ptr, strlen(*ptr) + 1);
169+
m_strings.append(*ptr, fb_strlen(*ptr) + 1);
170170

171171
*ptr = &m_strings[pos];
172172
setStrPointers(oldBase);

0 commit comments

Comments
 (0)