mirror of
https://github.com/reactos/ninja.git
synced 2024-11-23 11:49:45 +00:00
Merge pull request #1787 from neheb/str
[clang-tidy] remove pointless string init
This commit is contained in:
commit
3094b5c289
@ -3,9 +3,11 @@ Checks: '
|
||||
,readability-avoid-const-params-in-decls,
|
||||
,readability-non-const-parameter,
|
||||
,readability-redundant-string-cstr,
|
||||
,readability-redundant-string-init,
|
||||
'
|
||||
WarningsAsErrors: '
|
||||
,readability-avoid-const-params-in-decls,
|
||||
,readability-non-const-parameter,
|
||||
,readability-redundant-string-cstr,
|
||||
,readability-redundant-string-init,
|
||||
'
|
||||
|
@ -31,7 +31,7 @@ TEST(StringPieceUtilTest, SplitStringPiece) {
|
||||
}
|
||||
|
||||
{
|
||||
string empty("");
|
||||
string empty;
|
||||
vector<StringPiece> list = SplitStringPiece(empty, ':');
|
||||
|
||||
EXPECT_EQ(list.size(), 1);
|
||||
@ -82,7 +82,7 @@ TEST(StringPieceUtilTest, JoinStringPiece) {
|
||||
}
|
||||
|
||||
{
|
||||
string empty("");
|
||||
string empty;
|
||||
vector<StringPiece> list = SplitStringPiece(empty, ':');
|
||||
|
||||
EXPECT_EQ("", JoinStringPiece(list, ':'));
|
||||
|
Loading…
Reference in New Issue
Block a user