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); }