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:
parent
eaf8c0778d
commit
056e7dcde4
9 changed files with 22 additions and 41 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue