summaryrefslogtreecommitdiff
path: root/firmwareninja.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'firmwareninja.cpp')
-rw-r--r--firmwareninja.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmwareninja.cpp b/firmwareninja.cpp
index 9fd53930..d5e8fd0d 100644
--- a/firmwareninja.cpp
+++ b/firmwareninja.cpp
@@ -140,7 +140,7 @@ Ref<Function> FirmwareNinjaRelationship::GetPrimaryFunction() const
if (!bnFunction)
return nullptr;
- return new Function(BNNewFunctionReference(bnFunction));
+ return new Function(bnFunction);
}
@@ -245,7 +245,7 @@ Ref<Function> FirmwareNinjaRelationship::GetSecondaryFunction() const
if (!bnFunction)
return nullptr;
- return new Function(BNNewFunctionReference(bnFunction));
+ return new Function(bnFunction);
}
@@ -336,7 +336,7 @@ bool FirmwareNinjaReferenceNode::GetFunction(Ref<Function>& function)
if (!bnFunction)
return false;
- function = new Function(BNNewFunctionReference(bnFunction));
+ function = new Function(bnFunction);
return true;
}