mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-10-02 15:00:02 +00:00
Replace string_ref with string_view in test.
This commit is contained in:
parent
befbed413a
commit
eaf8c0778d
2 changed files with 6 additions and 6 deletions
|
@ -41,9 +41,9 @@ namespace tawashi {
|
|||
}
|
||||
|
||||
Storage::SubmissionResult FakeStorage::submit_pastie (
|
||||
const boost::string_ref& parText,
|
||||
const boost::string_view& parText,
|
||||
uint32_t parExpiry,
|
||||
const boost::string_ref& parLang,
|
||||
const boost::string_view& parLang,
|
||||
const std::string& parRemoteIP
|
||||
) const {
|
||||
SubmittedPastie pastie;
|
||||
|
@ -60,7 +60,7 @@ namespace tawashi {
|
|||
return submission_res;
|
||||
}
|
||||
|
||||
boost::optional<std::string> FakeStorage::retrieve_pastie (const boost::string_ref& parToken) const {
|
||||
boost::optional<std::string> FakeStorage::retrieve_pastie (const boost::string_view& parToken) const {
|
||||
auto it_found = std::find_if(
|
||||
m_submitted_pasties.begin(),
|
||||
m_submitted_pasties.end(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue