summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWunkolo <Wunkolo@gmail.com>2022-03-11 18:57:08 +0100
committerWunkolo <Wunkolo@gmail.com>2022-03-11 19:26:59 +0100
commit29a7a61806002bc1f8c9bcf0f84689f137cd41c0 (patch)
tree0c4d5d7d6c2a692d4eeba09697368240ba3b810c
parentMerge pull request #7982 from BytesGalore/fix_cmake_missing_qt5_dbus (diff)
downloadyuzu-29a7a61806002bc1f8c9bcf0f84689f137cd41c0.tar
yuzu-29a7a61806002bc1f8c9bcf0f84689f137cd41c0.tar.gz
yuzu-29a7a61806002bc1f8c9bcf0f84689f137cd41c0.tar.bz2
yuzu-29a7a61806002bc1f8c9bcf0f84689f137cd41c0.tar.lz
yuzu-29a7a61806002bc1f8c9bcf0f84689f137cd41c0.tar.xz
yuzu-29a7a61806002bc1f8c9bcf0f84689f137cd41c0.tar.zst
yuzu-29a7a61806002bc1f8c9bcf0f84689f137cd41c0.zip
-rw-r--r--src/common/telemetry.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/telemetry.h b/src/common/telemetry.h
index 4d632f7eb..3524c857e 100644
--- a/src/common/telemetry.h
+++ b/src/common/telemetry.h
@@ -8,6 +8,7 @@
#include <map>
#include <memory>
#include <string>
+#include <string_view>
#include "common/common_funcs.h"
#include "common/common_types.h"
@@ -55,8 +56,8 @@ class Field : public FieldInterface {
public:
YUZU_NON_COPYABLE(Field);
- Field(FieldType type_, std::string name_, T value_)
- : name(std::move(name_)), type(type_), value(std::move(value_)) {}
+ Field(FieldType type_, std::string_view name_, T value_)
+ : name(name_), type(type_), value(std::move(value_)) {}
~Field() override = default;
@@ -123,7 +124,7 @@ public:
* @param value Value for the field to add.
*/
template <typename T>
- void AddField(FieldType type, const char* name, T value) {
+ void AddField(FieldType type, std::string_view name, T value) {
return AddField(std::make_unique<Field<T>>(type, name, std::move(value)));
}