Skip to content

Commit e14775f

Browse files
committed
适应苹果的毛病
1 parent 9bf7c68 commit e14775f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Util/src/InfoTree/InfoTree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ InfoNode InfoTree::CreateArray() {
4444
return InfoNode(nodeIndex, this);
4545
}
4646

47-
InfoNode InfoTree::CreateString(std::string_view s) {
47+
InfoNode InfoTree::CreateString(std::string s) {
4848
auto nodeIndex = _nodeOrInfos.size();
4949
auto valueIndex = _stringValues.size();
5050
_stringValues.emplace_back(s);

include/Util/InfoTree/InfoTree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class InfoTree {
2929

3030
InfoNode CreateArray();
3131

32-
InfoNode CreateString(std::string_view s);
32+
InfoNode CreateString(std::string s);
3333

3434
InfoNode CreateBool(bool b);
3535

0 commit comments

Comments
 (0)