Skip to content

Commit

Permalink
Fix string retreival in demo and howto
Browse files Browse the repository at this point in the history
  • Loading branch information
metayeti committed Nov 13, 2019
1 parent 3fae76a commit 674e9bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/src/demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Demo
Unlime::T_Bytes data;
if (ex.get(data, resCategory, resKey))
{
strObject.assign(reinterpret_cast<const char*>(data.data()), data.size());
strObject.assign(data.begin(), data.end());
}
}

Expand Down
2 changes: 1 addition & 1 deletion howto/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int main()
// Fetch and set the window title
Unlime::T_Bytes bytesTitle;
if (ex.get(bytesTitle, "window", "title")) {
std::string strTitle = std::string(reinterpret_cast<const char*>(bytesTitle.data()), bytesTitle.size());
std::string strTitle(bytesTitle.begin(), bytesTitle.end());
window.setTitle(strTitle);
}
Expand Down

0 comments on commit 674e9bc

Please sign in to comment.