aboutsummaryrefslogtreecommitdiff
path: root/src/cppbor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppbor.cpp')
-rw-r--r--src/cppbor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cppbor.cpp b/src/cppbor.cpp
index 0e9c939..5c9827f 100644
--- a/src/cppbor.cpp
+++ b/src/cppbor.cpp
@@ -132,9 +132,8 @@ bool prettyPrintInternal(const Item* item, string& out, size_t indent, size_t ma
const ViewBstr* viewBstr = item->asViewBstr();
assert(viewBstr != nullptr);
- std::basic_string_view view = viewBstr->view();
- valueData = view.data();
- valueSize = view.size();
+ valueData = viewBstr->view().data();
+ valueSize = viewBstr->view().size();
}
if (valueSize > maxBStrSize) {