srctree

Robin Linden parent 9d699714 8b2aea36
all: Fix clang-tidy's performance-avoid-endl warnings

inlinesplit
browser/gui/app.cpp added: 9, removed: 9, total 0
@@ -94,7 +94,7 @@ std::string element_text(layout::LayoutBox const *element) {
std::string stylesheet_to_string(css::StyleSheet const &stylesheet) {
std::stringstream ss;
for (auto const &rule : stylesheet.rules) {
ss << css::to_string(rule) << std::endl;
ss << css::to_string(rule) << '\n';
}
return std::move(ss).str();
}
 
etest/etest2.cpp added: 9, removed: 9, total 0
@@ -69,9 +69,9 @@ int Suite::run(RunOptions const &opts) {
 
std::cout << tests_.size() + disabled_tests_.size() << " test(s) registered";
if (disabled_tests_.size() == 0) {
std::cout << "." << std::endl;
std::cout << ".\n" << std::flush;
} else {
std::cout << ", " << disabled_tests_.size() << " disabled." << std::endl;
std::cout << ", " << disabled_tests_.size() << " disabled.\n" << std::flush;
if (opts.run_disabled_tests) {
std::ranges::copy(begin(disabled_tests_), end(disabled_tests_), std::back_inserter(tests_to_run));
}
 
url/url_test.cpp added: 9, removed: 9, total 0
@@ -32,7 +32,7 @@ int main() {
url::Origin o = {"https", h, std::uint16_t{8080}, std::nullopt, false};
 
std::string blob = url::blob_url_create(o);
std::cout << std::endl << "Generated Blob URL: " << blob << std::endl;
std::cout << "\nGenerated Blob URL: " << blob << '\n';
 
etest::expect(std::regex_match(blob, std::regex("blob:https://example.com:8080/" + regex_uuid)));
 
@@ -40,7 +40,7 @@ int main() {
o = {"https", h, std::uint16_t{8080}, std::nullopt, false};
 
blob = url::blob_url_create(o);
std::cout << "Generated Blob URL: " << blob << std::endl;
std::cout << "Generated Blob URL: " << blob << '\n';
 
etest::expect(std::regex_match(blob, std::regex("blob:https://8.8.8.8:8080/" + regex_uuid)));
 
@@ -49,7 +49,7 @@ int main() {
o = {"https", h, std::uint16_t{8080}, std::nullopt, false};
 
blob = url::blob_url_create(o);
std::cout << "Generated Blob URL: " << blob << std::endl;
std::cout << "Generated Blob URL: " << blob << '\n';
 
etest::expect(std::regex_match(
blob, std::regex("blob:https://\\[2001:db8:85a3::8a2e:370:7334\\]:8080/" + regex_uuid)));