From 8abc60bed8a5252aec5d96bf5d8a443dfb7cd4e9 Mon Sep 17 00:00:00 2001 From: qiuwenchen Date: Mon, 6 May 2024 17:57:26 +0800 Subject: [PATCH] Fix compile error of WCDB C++ --- src/cpp/Operation/HandleORMOperation.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cpp/Operation/HandleORMOperation.hpp b/src/cpp/Operation/HandleORMOperation.hpp index 753c677c8..228a4cfb0 100644 --- a/src/cpp/Operation/HandleORMOperation.hpp +++ b/src/cpp/Operation/HandleORMOperation.hpp @@ -201,8 +201,7 @@ class WCDB_API HandleORMOperation : public HandleOperation { const UnsafeStringView &table, const Fields &fields = Fields()) { - auto insert - = prepareInsert().orReplace().intoTable(table).value(&obj); + auto insert = prepareInsert().orReplace().intoTable(table).value(obj); if (fields.size() > 0) { insert.onFields(fields); } @@ -285,8 +284,7 @@ class WCDB_API HandleORMOperation : public HandleOperation { const UnsafeStringView &table, const Fields &fields = Fields()) { - auto insert - = prepareInsert().orIgnore().intoTable(table).value(&obj); + auto insert = prepareInsert().orIgnore().intoTable(table).value(obj); if (fields.size() > 0) { insert.onFields(fields); }