1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-08-15 13:19:45 +00:00

Use stock std::string conversion.

This commit is contained in:
King_DuckZ 2017-06-07 00:19:53 +01:00
parent eaf8c0778d
commit 056e7dcde4
9 changed files with 22 additions and 41 deletions

View file

@ -48,9 +48,9 @@ namespace tawashi {
) const {
SubmittedPastie pastie;
std::string token = num_to_token(m_submission_num++);
pastie.text = std::string(parText.data(), parText.size());
pastie.text = std::string(parText);
pastie.expiry = parExpiry;
pastie.lang = std::string(parLang.data(), parLang.size());
pastie.lang = std::string(parLang);
pastie.remote_ip = parRemoteIP;
pastie.token = token;
m_submitted_pasties.push_back(std::move(pastie));