diff options
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 66b7e77f..292b11ac 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -662,6 +662,12 @@ StringRef::StringRef(BNStringRef* ref) } +StringRef::StringRef(const std::string& str) +{ + m_ref = BNCreateStringRefOfLength(str.c_str(), str.size()); +} + + StringRef::StringRef(const StringRef& other) { m_ref = BNDuplicateStringRef(other.m_ref); |
