diff options
| author | Peter LaFosse <peter@vector35.com> | 2018-12-07 16:24:36 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2018-12-13 13:32:18 -0500 |
| commit | 7357dd114a145ca64e7356233c3cb8b9dd9eae84 (patch) | |
| tree | c78809a950bb7a7c47c38631c5d635c4b691781f /binaryview.cpp | |
| parent | 4e07d8c4bd8cfbd3e56b7a233483c8efe5b84300 (diff) | |
Make ParseExpression not dependant on a BinaryView
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index afcb4560..bc8f5050 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -2354,10 +2354,10 @@ NameSpace BinaryView::GetExternalNameSpace() } -bool BinaryView::ParseExpression(const string& expression, uint64_t &offset, uint64_t here, string& errorString) +bool BinaryView::ParseExpression(Ref<BinaryView> view, const string& expression, uint64_t &offset, uint64_t here, string& errorString) { char* err = nullptr; - if (!BNParseExpression(m_object, expression.c_str(), &offset, here, &err)) + if (!BNParseExpression(view ? view->GetObject() : nullptr, expression.c_str(), &offset, here, &err)) { LogDebug("Failed to parse expression: '%s': Error: '%s'", expression.c_str(), err); errorString = string(err); |
