diff options
author | rtk0c <[email protected]> | 2022-07-07 19:35:40 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-07-07 19:35:40 -0700 |
commit | 8776b737483f579d2d2034bb91efe0794bf67d92 (patch) | |
tree | dfefd7f9aa2a5fe00b3089d2435f5e1bc6b9c91e /source/20-codegen-compiler/CodegenModel.cpp | |
parent | eeed6d84f4324387597be05e6ed1df4b3adfca9c (diff) |
Changeset: 81 Replace DeclEnum::underlyingTypeStr with a lookup function from the enumeration value DeclEnum::underlyingType
Diffstat (limited to 'source/20-codegen-compiler/CodegenModel.cpp')
-rw-r--r-- | source/20-codegen-compiler/CodegenModel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/20-codegen-compiler/CodegenModel.cpp b/source/20-codegen-compiler/CodegenModel.cpp index 943d72c..b466d6e 100644 --- a/source/20-codegen-compiler/CodegenModel.cpp +++ b/source/20-codegen-compiler/CodegenModel.cpp @@ -636,10 +636,11 @@ ON CONFLICT DO UPDATE SET Value=?3 )"""sv); int result; + auto eutName = decl.GetUnderlyingTypeName(); sqlite3_bind_int(m->storeEnumStmt, 1, m->FindNamespace(decl.container)); sqlite3_bind_text(m->storeEnumStmt, 2, decl.name.c_str(), decl.name.size(), nullptr); - sqlite3_bind_text(m->storeEnumStmt, 3, decl.underlyingTypeStr.c_str(), decl.underlyingTypeStr.size(), nullptr); + sqlite3_bind_text(m->storeEnumStmt, 3, eutName.data(), eutName.size(), nullptr); if (decl.sourceFile) { sqlite3_bind_text(m->storeEnumStmt, 4, decl.sourceFile->filename.data(), decl.sourceFile->filename.size(), nullptr); } else { |