summaryrefslogtreecommitdiff
path: root/lib/persistence.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-02-20 18:24:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-02-20 18:24:54 +0000
commit375652641509b75e93a284deea44f6f1be13e7b3 (patch)
treed00822fc1ac8a5605edbd6f9e7701076b9fbd4dc /lib/persistence.h
parentAdd support for smooth faces (diff)
downloadilt-375652641509b75e93a284deea44f6f1be13e7b3.tar.bz2
ilt-375652641509b75e93a284deea44f6f1be13e7b3.tar.xz
ilt-375652641509b75e93a284deea44f6f1be13e7b3.zip
Swap @ prefix for p. prefix for special value names
Diffstat (limited to 'lib/persistence.h')
-rw-r--r--lib/persistence.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/persistence.h b/lib/persistence.h
index 4fbff4c..c311067 100644
--- a/lib/persistence.h
+++ b/lib/persistence.h
@@ -340,14 +340,14 @@ namespace Persistence {
select(const std::string & mbr) override
{
using namespace std::literals;
- if (mbr == "@typeid"sv) {
+ if (mbr == "p.typeid"sv) {
if (this->v) {
throw std::runtime_error("cannot set object type after creation");
}
return this->template make_s<MakeObjectByTypeName>(this->v);
}
if constexpr (shared) {
- if (mbr == "@id"sv) {
+ if (mbr == "p.id"sv) {
return this->template make_s<RememberObjectById>(this->v);
}
}