Fix unnecessary string copy in logd

To avoid making unnecessary copies of the path string, it will now use
move semantics.

Change-Id: Iecef1df1929cc9748b5a33f6bed088bfd785acce
Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
diff --git a/utils/ethosu_logd/main.cpp b/utils/ethosu_logd/main.cpp
index d7ff1eb..1d84caa 100644
--- a/utils/ethosu_logd/main.cpp
+++ b/utils/ethosu_logd/main.cpp
@@ -1,6 +1,5 @@
 /*
- * Copyright (c) 2021 Arm Limited. All rights reserved.
- *
+ * SPDX-FileCopyrightText: Copyright 2021, 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
  * SPDX-License-Identifier: Apache-2.0
  *
  * Licensed under the Apache License, Version 2.0 (the License); you may
@@ -40,7 +39,7 @@
 
 class Path {
 public:
-    Path(const std::string path) : path(path) {}
+    Path(std::string path) : path(std::move(path)) {}
 
     Path(const char *path) : path(path) {}