summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/db/sqlInsertSerializer.cpp2
-rw-r--r--slicer/db/sqlUpdateSerializer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/slicer/db/sqlInsertSerializer.cpp b/slicer/db/sqlInsertSerializer.cpp
index ac1f133..c45b028 100644
--- a/slicer/db/sqlInsertSerializer.cpp
+++ b/slicer/db/sqlInsertSerializer.cpp
@@ -148,7 +148,7 @@ namespace Slicer {
insert << "?, ";
}
insert << "?)";
- return connection->modify(insert.str());
+ return connection->modify(std::move(insert).str());
}
void
diff --git a/slicer/db/sqlUpdateSerializer.cpp b/slicer/db/sqlUpdateSerializer.cpp
index a3c65ee..0cd3c02 100644
--- a/slicer/db/sqlUpdateSerializer.cpp
+++ b/slicer/db/sqlUpdateSerializer.cpp
@@ -102,6 +102,6 @@ namespace Slicer {
"%? = ?"_fmt(update, name);
}
});
- return connection->modify(update.str());
+ return connection->modify(std::move(update).str());
}
}