Skip to content

Commit

Permalink
Make DefineScope result editable
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Jan 18, 2024
1 parent 009d298 commit 6057396
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interfaces/dispenser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ namespace
try
{
mdhandle_view handle_view{ obj->CreateAndAddTearOff<DNMDOwner>(std::move(md_ptr)) };
(void)obj->CreateAndAddTearOff<MetadataEmit>(handle_view);
(void)obj->CreateAndAddTearOff<MetadataImportRO>(std::move(handle_view));
}
catch(std::bad_alloc const&)
Expand Down Expand Up @@ -126,7 +127,7 @@ namespace

if (!(dwOpenFlags & ofReadOnly))
{
obj->CreateAndAddTearOff<MetadataEmit>(handle_view);
(void)obj->CreateAndAddTearOff<MetadataEmit>(handle_view);
}

(void)obj->CreateAndAddTearOff<MetadataImportRO>(std::move(handle_view));
Expand Down

0 comments on commit 6057396

Please sign in to comment.