Skip to content

Commit d3c1ad7

Browse files
committed
Make utf variable const pointer
1 parent dc40880 commit d3c1ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/transformations/utf8_to_unicode.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static inline bool encode(std::string &value) {
4646
int unicode_len = 0;
4747
unsigned int d = 0;
4848
unsigned char c;
49-
auto utf = &input[i];
49+
const auto* utf = &input[i];
5050

5151
c = *utf;
5252

0 commit comments

Comments
 (0)