Skip to content

Commit 352ae6d

Browse files
alsednem0
authored andcommitted
adds missing constructor for StringView
1 parent 5ac9b5b commit 352ae6d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ofbx.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ struct StringView {
235235
const char* value;
236236
const char* end;
237237

238+
StringView(const char* v, const char* e)
239+
{
240+
value = v;
241+
end = e;
242+
}
243+
238244
bool operator ==(StringView rhs) const {
239245
const size_t len = end - value;
240246
if (len != (size_t)(rhs.end - rhs.value)) return false;

0 commit comments

Comments
 (0)