Skip to content

Commit 68d22b5

Browse files
committed
fix mac issue
1 parent e14775f commit 68d22b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Util/src/InfoTree/InfoNode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void InfoNode::AddChild(InfoNode n) {
4545
}
4646
}
4747

48-
void InfoNode::AddChild(std::string_view s) {
48+
void InfoNode::AddChild(std::string s) {
4949
auto c = _tree->CreateString(s);
5050
AddChild(c);
5151
}
@@ -69,7 +69,7 @@ void InfoNode::AddChild(std::string_view key, InfoNode n) {
6969
}
7070
}
7171

72-
void InfoNode::AddChild(std::string_view key, std::string_view s) {
72+
void InfoNode::AddChild(std::string_view key, std::string s) {
7373
auto c = _tree->CreateString(s);
7474
AddChild(key, c);
7575
}

include/Util/InfoTree/InfoNode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ class InfoNode {
2727

2828
void AddChild(InfoNode n);
2929

30-
void AddChild(std::string_view s);
30+
void AddChild(std::string s);
3131

3232
void AddChild(bool b);
3333

3434
void AddChild(double d);
3535

3636
void AddChild(std::string_view key, InfoNode n);
3737

38-
void AddChild(std::string_view key, std::string_view s);
38+
void AddChild(std::string_view key, std::string s);
3939

4040
void AddChild(std::string_view key, bool b);
4141

0 commit comments

Comments
 (0)