Skip to content

Commit a9c0b6d

Browse files
committed
修复一个未初始化问题
1 parent d3b0b8a commit a9c0b6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CodeFormatLib/src/Types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
struct LuaConfig {
44
explicit LuaConfig(std::string_view workspace)
5-
: Workspace(workspace), Editorconfig(nullptr) {}
5+
: Workspace(workspace), Editorconfig(nullptr) {}
66

77
std::string Workspace;
88
std::shared_ptr<LuaEditorConfig> Editorconfig;
@@ -30,10 +30,10 @@ template<class T>
3030
class Result {
3131
public:
3232
Result(T &&d)
33-
: Data(d) {}
33+
: Type(ResultType::Ok), Data(d) {}
3434

3535
Result(ResultType type)
36-
: Type(type) {}
36+
: Type(type) {}
3737

3838
ResultType Type;
3939
T Data;

0 commit comments

Comments
 (0)