Skip to content

Commit 7315464

Browse files
committed
修复链接错误
1 parent 477579e commit 7315464

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Snap.Hutao.Remastered.Native/HutaoAString.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <cstdarg>
77
#include <cstring>
88

9+
HutaoAString HutaoAString::Empty;
10+
911
HutaoAString::HutaoAString() : m_buffer()
1012
{
1113
m_buffer.Add('\0');
@@ -44,17 +46,17 @@ HutaoAString::HutaoAString(const char* initialValue, size_t length) : m_buffer()
4446

4547
HutaoAString::HutaoAString(const HutaoAString& other) : m_buffer(other.m_buffer)
4648
{
47-
// Array的拷贝构造函数已经处理了拷贝
49+
4850
}
4951

5052
HutaoAString::HutaoAString(HutaoAString&& other) noexcept : m_buffer(std::move(other.m_buffer))
5153
{
52-
// Array的移动构造函数已经处理了移动
54+
5355
}
5456

5557
HutaoAString::~HutaoAString()
5658
{
57-
// Array的析构函数会自动清理
59+
5860
}
5961

6062
HRESULT __stdcall HutaoAString::GetBuffer(LPCSTR* buffer) noexcept

src/Snap.Hutao.Remastered.Native/HutaoString.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <cstdarg>
77
#include <cwchar>
88

9+
HutaoString HutaoString::Empty;
10+
911
// 构造函数
1012
HutaoString::HutaoString() : m_buffer()
1113
{

0 commit comments

Comments
 (0)