Skip to content

Commit 8c9081e

Browse files
cristian64dreamsyntax
authored andcommitted
Address readability-redundant-string-init warnings.
The warnings were: ``` /w/dolphin-memory-engine/Source/GUI/MemCopy/DlgCopy.cpp:230:15: warning: redundant string initialization [readability-redundant-string-init] 230 | std::string beforeAll = ""; | ^~~~~~~~~~~~~~ | beforeAll /w/dolphin-memory-engine/Source/GUI/MemCopy/DlgCopy.cpp:231:15: warning: redundant string initialization [readability-redundant-string-init] 231 | std::string beforeByte = ""; | ^~~~~~~~~~~~~~~ | beforeByte /w/dolphin-memory-engine/Source/GUI/MemCopy/DlgCopy.cpp:232:15: warning: redundant string initialization [readability-redundant-string-init] 232 | std::string betweenBytes = ""; | ^~~~~~~~~~~~~~~~~ | betweenBytes /w/dolphin-memory-engine/Source/GUI/MemCopy/DlgCopy.cpp:233:15: warning: redundant string initialization [readability-redundant-string-init] 233 | std::string afterAll = ""; | ^~~~~~~~~~~~~ | afterAll ```
1 parent 2f058eb commit 8c9081e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/GUI/MemCopy/DlgCopy.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ std::string DlgCopy::charToHexString(const char* const input, const size_t count
228228
std::stringstream ss;
229229
const char convert[16] = {'0', '1', '2', '3', '4', '5', '6', '7',
230230
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
231-
std::string beforeAll = "";
232-
std::string beforeByte = "";
233-
std::string betweenBytes = "";
234-
std::string afterAll = "";
231+
std::string beforeAll;
232+
std::string beforeByte;
233+
std::string betweenBytes;
234+
std::string afterAll;
235235

236236
switch (format)
237237
{

0 commit comments

Comments
 (0)