Skip to content

Commit 8e415fe

Browse files
CodemodService Botfacebook-github-bot
CodemodService Bot
authored andcommitted
Fix CQS signal. Id] 62183176 -- readability-redundant-string-init in fbcode/faiss/impl (#4332)
Differential Revision: D74239080 Pulled By: junjieqi fbshipit-source-id: 635cb0f408168ab0ad1172965c5798767a23339c
1 parent faa5c85 commit 8e415fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faiss/impl/io.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ std::string fourcc_inv(uint32_t x) {
260260
std::string fourcc_inv_printable(uint32_t x) {
261261
char cstr[5];
262262
fourcc_inv(x, cstr);
263-
std::string str = "";
263+
std::string str;
264264
for (int i = 0; i < 4; i++) {
265265
uint8_t c = cstr[i];
266266
if (32 <= c && c < 127) {

0 commit comments

Comments
 (0)