mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-10-06 15:09:59 +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
|
@ -21,7 +21,7 @@
|
|||
#include "error_reasons.hpp"
|
||||
#include <memory>
|
||||
#include <cstdint>
|
||||
#include <boost/utility/string_ref.hpp>
|
||||
#include <boost/utility/string_view.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <string>
|
||||
|
||||
|
@ -46,13 +46,13 @@ namespace tawashi {
|
|||
tawashi_virtual_testing bool is_connected() const;
|
||||
tawashi_virtual_testing void finalize_connection();
|
||||
tawashi_virtual_testing SubmissionResult 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;
|
||||
|
||||
tawashi_virtual_testing boost::optional<std::string> retrieve_pastie (const boost::string_ref& parToken) const;
|
||||
tawashi_virtual_testing boost::optional<std::string> retrieve_pastie (const boost::string_view& parToken) const;
|
||||
|
||||
#if defined(TAWASHI_WITH_TESTING)
|
||||
const SettingsBag& settings() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue