summaryrefslogtreecommitdiff
path: root/iotop/iotop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'iotop/iotop.cpp')
-rw-r--r--iotop/iotop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/iotop/iotop.cpp b/iotop/iotop.cpp
index 828fb32c..e2582e85 100644
--- a/iotop/iotop.cpp
+++ b/iotop/iotop.cpp
@@ -53,7 +53,7 @@ static void usage(char* myname) {
}
using Sorter = std::function<void(std::vector<TaskStatistics>&)>;
-static Sorter GetSorter(const std::string field) {
+static Sorter GetSorter(const std::string& field) {
// Generic comparator
static auto comparator = [](auto& lhs, auto& rhs, auto field, bool ascending) -> bool {
auto a = (lhs.*field)();