mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-08-03 12:50:02 +00:00
Replace string_ref with string_view
This commit is contained in:
parent
df1afc7616
commit
6e19745d69
39 changed files with 168 additions and 167 deletions
|
@ -20,7 +20,7 @@
|
|||
#include "response.hpp"
|
||||
#include <string>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/utility/string_ref.hpp>
|
||||
#include <boost/utility/string_view.hpp>
|
||||
#include <cassert>
|
||||
#include <utility>
|
||||
|
||||
|
@ -43,13 +43,13 @@ namespace tawashi {
|
|||
);
|
||||
|
||||
protected:
|
||||
virtual boost::string_ref page_basename() const override { assert(false); return boost::string_ref(""); }
|
||||
virtual boost::string_view page_basename() const override { assert(false); return boost::string_view(""); }
|
||||
virtual HttpHeader make_success_response (std::string&& parPastieParam);
|
||||
|
||||
private:
|
||||
typedef std::pair<boost::optional<std::string>, HttpHeader> StringOrHeader;
|
||||
|
||||
virtual HttpHeader on_process() override;
|
||||
StringOrHeader submit_to_storage (const boost::string_ref& parText, uint32_t parExpiry, const boost::string_ref& parLang);
|
||||
StringOrHeader submit_to_storage (const boost::string_view& parText, uint32_t parExpiry, const boost::string_view& parLang);
|
||||
};
|
||||
} //namespace tawashi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue