[clang-tidy] Enable readability-redundant-string-init (#16310)
This commit is contained in:
1 parent
7b6e2589f1
commit
a970f05b69
13 files changed
+18
-19
No files matched your search
@@ -52,7 +52,7 @@ NdefMessage::NdefMessage(std::vector<uint8_t> &data) {
|
||||
|
||||
index += type_length;
|
||||
|
||||
std::string id_str = "";
|
||||
std::string id_str;
|
||||
if (il) {
|
||||
id_str = std::string(data.begin() + index, data.begin() + index + id_length);
|
||||
index += id_length;
|
||||
|
||||
Reference in new issue
Block a user