Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c083acf authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix clang-tidy performance warnings.

* Use const reference parameter type to avoid unnecessary copy.

Bug: 30407689
Change-Id: Iefab05c077367f272abf545036b853e8a295c8cd
Test: build with WITH_TIDY=1
parent 620ce44a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ debug_printf(const char* format, ...)

// Escape the filename so that it can be added to the makefile properly.
static string
escape_filename(const string name)
escape_filename(const string& name)
{
    ostringstream new_name;
    for (string::const_iterator iter = name.begin(); iter != name.end(); ++iter)