summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-02 12:07:20 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 12:51:11 +0200
commit8e0ab708ccb604c3224da2386dde609cb30de2b7 (patch)
tree70a29411737189ceeafcc6442586c25bd4db3624 /src
parentdc912cf3f1a186b703cee539db38b4ae0979ab6c (diff)
downloadingen-8e0ab708ccb604c3224da2386dde609cb30de2b7.tar.gz
ingen-8e0ab708ccb604c3224da2386dde609cb30de2b7.tar.bz2
ingen-8e0ab708ccb604c3224da2386dde609cb30de2b7.zip
Add missing const
Diffstat (limited to 'src')
-rw-r--r--src/AtomReader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AtomReader.cpp b/src/AtomReader.cpp
index 4c8cd4ef..a7f0386e 100644
--- a/src/AtomReader.cpp
+++ b/src/AtomReader.cpp
@@ -160,9 +160,9 @@ AtomReader::write(const LV2_Atom* msg, int32_t default_id)
return false;
}
- const auto* obj = reinterpret_cast<const LV2_Atom_Object*>(msg);
- const LV2_Atom* subject = nullptr;
- const LV2_Atom* number = nullptr;
+ const auto* const obj = reinterpret_cast<const LV2_Atom_Object*>(msg);
+ const LV2_Atom* subject = nullptr;
+ const LV2_Atom* number = nullptr;
lv2_atom_object_get(obj,
_uris.patch_subject.urid(), &subject,