diff options
| author | Brian Potchik <brian@vector35.com> | 2025-10-03 18:22:58 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-10-03 18:22:58 -0400 |
| commit | 183ef5e2f0ba6124efac98efba67757f1e8b2aa9 (patch) | |
| tree | f6d1edf9de197ebdf63f969816c5695e820140f2 /transformcontext.cpp | |
| parent | 92d75df37c76813ac4a71e35096dcb31ac1b18af (diff) | |
Update IMG4 transform to use DecodeWithContext and synthesize a filename for the payload.
Diffstat (limited to 'transformcontext.cpp')
| -rw-r--r-- | transformcontext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/transformcontext.cpp b/transformcontext.cpp index 186b24b9..5bddda80 100644 --- a/transformcontext.cpp +++ b/transformcontext.cpp @@ -50,7 +50,7 @@ Ref<TransformContext> TransformContext::GetParent() const BNTransformContext* parent = BNTransformContextGetParent(m_object); if (!parent) return nullptr; - return new TransformContext(BNNewTransformContextReference(parent)); + return new TransformContext(parent); } @@ -81,7 +81,7 @@ Ref<TransformContext> TransformContext::GetChild(const string& filename) const BNTransformContext* child = BNTransformContextGetChild(m_object, filename.c_str()); if (!child) return nullptr; - return new TransformContext(BNNewTransformContextReference(child)); + return new TransformContext(child); } @@ -90,7 +90,7 @@ Ref<TransformContext> TransformContext::CreateChild(const DataBuffer& data, cons BNTransformContext* child = BNTransformContextCreateChild(m_object, data.GetBufferObject(), filename.c_str()); if (!child) return nullptr; - return new TransformContext(BNNewTransformContextReference(child)); + return new TransformContext(child); } |
