summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-04-05 01:17:00 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-04-05 01:17:00 +0100
commitc58d8c803fd1b19f306ef87f017177d75cb263cb (patch)
treeb6d450bdf4cf65aaa4c30206dbbbdf4edb9e9d6f
parentTidy includes (diff)
downloadslicer-c58d8c803fd1b19f306ef87f017177d75cb263cb.tar.bz2
slicer-c58d8c803fd1b19f306ef87f017177d75cb263cb.tar.xz
slicer-c58d8c803fd1b19f306ef87f017177d75cb263cb.zip
Use stringstream str by move
-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());
}
}