summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-08-26 13:54:20 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-08-26 14:53:17 +0100
commit12dbe4312e2f32c2e1e096b861d79f35d21d307c (patch)
treefa5d4da65a16e5c0423615ada81e81857c7af3bf
parentProvide string_view interface for enum lookup (diff)
downloadslicer-12dbe4312e2f32c2e1e096b861d79f35d21d307c.tar.bz2
slicer-12dbe4312e2f32c2e1e096b861d79f35d21d307c.tar.xz
slicer-12dbe4312e2f32c2e1e096b861d79f35d21d307c.zip
Remove unnecessary captures
-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 90f97bb..223f739 100644
--- a/slicer/db/sqlInsertSerializer.cpp
+++ b/slicer/db/sqlInsertSerializer.cpp
@@ -88,7 +88,7 @@ namespace Slicer {
SqlFetchIdInsertSerializer::bindObjectAndExecute(Slicer::ModelPartPtr cmp, DB::ModifyCommand * ins) const
{
SqlAutoIdInsertSerializer::bindObjectAndExecute(cmp, ins);
- cmp->OnEachChild([&ins, this](const std::string &, ModelPartPtr cmp, const HookCommon * h) {
+ cmp->OnEachChild([this](const std::string &, ModelPartPtr cmp, const HookCommon * h) {
if (isAuto(h)) {
cmp->SetValue(IdSave(connection));
}
diff --git a/slicer/db/sqlUpdateSerializer.cpp b/slicer/db/sqlUpdateSerializer.cpp
index 7629573..07d6f15 100644
--- a/slicer/db/sqlUpdateSerializer.cpp
+++ b/slicer/db/sqlUpdateSerializer.cpp
@@ -43,7 +43,7 @@ namespace Slicer {
SqlUpdateSerializer::SerializeSequence(Slicer::ModelPartPtr mp) const
{
auto ins = createUpdate(mp->GetContainedModelPart());
- mp->OnEachChild([&ins, this](const std::string &, ModelPartPtr cmp, const HookCommon *) {
+ mp->OnEachChild([&ins](const std::string &, ModelPartPtr cmp, const HookCommon *) {
bindObjectAndExecute(cmp, ins.get());
});
}