Skip to content

Use emplace_back() instead of push_back() to avoid temporary object

Codecov / codecov/patch failed Jul 18, 2024 in 0s

0.00% of diff hit (target 9.07%)

View this Pull Request on Codecov

0.00% of diff hit (target 9.07%)

Annotations

Check warning on line 188 in src/crypto.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/crypto.cpp#L188

Added line #L188 was not covered by tests

Check warning on line 219 in src/crypto.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/crypto.cpp#L219

Added line #L219 was not covered by tests

Check warning on line 221 in src/crypto.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/crypto.cpp#L221

Added line #L221 was not covered by tests

Check warning on line 643 in src/platform/common.h

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/common.h#L643

Added line #L643 was not covered by tests

Check warning on line 649 in src/platform/common.h

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/common.h#L646-L649

Added lines #L646 - L649 were not covered by tests

Check warning on line 652 in src/platform/common.h

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/common.h#L652

Added line #L652 was not covered by tests

Check warning on line 655 in src/platform/common.h

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/common.h#L655

Added line #L655 was not covered by tests

Check warning on line 444 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L444

Added line #L444 was not covered by tests

Check warning on line 446 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L446

Added line #L446 was not covered by tests

Check warning on line 457 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L451-L457

Added lines #L451 - L457 were not covered by tests

Check warning on line 463 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L462-L463

Added lines #L462 - L463 were not covered by tests

Check warning on line 466 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L465-L466

Added lines #L465 - L466 were not covered by tests

Check warning on line 469 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L468-L469

Added lines #L468 - L469 were not covered by tests

Check warning on line 474 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L473-L474

Added lines #L473 - L474 were not covered by tests

Check warning on line 485 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L485

Added line #L485 was not covered by tests

Check warning on line 516 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L516

Added line #L516 was not covered by tests

Check warning on line 533 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L532-L533

Added lines #L532 - L533 were not covered by tests

Check warning on line 538 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L536-L538

Added lines #L536 - L538 were not covered by tests

Check warning on line 543 in src/platform/linux/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/linux/misc.cpp#L540-L543

Added lines #L540 - L543 were not covered by tests

Check warning on line 1458 in src/platform/windows/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/windows/misc.cpp#L1458

Added line #L1458 was not covered by tests

Check warning on line 1468 in src/platform/windows/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/windows/misc.cpp#L1462-L1468

Added lines #L1462 - L1468 were not covered by tests

Check warning on line 1474 in src/platform/windows/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/windows/misc.cpp#L1473-L1474

Added lines #L1473 - L1474 were not covered by tests

Check warning on line 1480 in src/platform/windows/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/windows/misc.cpp#L1476-L1480

Added lines #L1476 - L1480 were not covered by tests

Check warning on line 1485 in src/platform/windows/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/windows/misc.cpp#L1484-L1485

Added lines #L1484 - L1485 were not covered by tests

Check warning on line 1533 in src/platform/windows/misc.cpp

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/platform/windows/misc.cpp#L1533

Added line #L1533 was not covered by tests