diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-07-27 21:18:58 +0100 | 
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-07-27 21:18:58 +0100 | 
| commit | 314bcb7bc3570742bb75d354912a7e633f6db03e (patch) | |
| tree | c8f8f28989a4f436f1dfadfb06a90a64aab0d2ea | |
| parent | Anonymous namespace over static (diff) | |
| download | icespider-314bcb7bc3570742bb75d354912a7e633f6db03e.tar.bz2 icespider-314bcb7bc3570742bb75d354912a7e633f6db03e.tar.xz icespider-314bcb7bc3570742bb75d354912a7e633f6db03e.zip  | |
PathElements can be string_views
| -rw-r--r-- | icespider/common/pathparts.h | 2 | ||||
| -rw-r--r-- | icespider/core/ihttpRequest.h | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/icespider/common/pathparts.h b/icespider/common/pathparts.h index c24360c..0053562 100644 --- a/icespider/common/pathparts.h +++ b/icespider/common/pathparts.h @@ -8,7 +8,7 @@  #include <visibility.h>  namespace IceSpider { -	using PathElements = std::vector<std::string>; +	using PathElements = std::vector<std::string_view>;  	class DLL_PUBLIC PathPart {  	public: diff --git a/icespider/core/ihttpRequest.h b/icespider/core/ihttpRequest.h index 25b5e00..451fe67 100644 --- a/icespider/core/ihttpRequest.h +++ b/icespider/core/ihttpRequest.h @@ -29,7 +29,7 @@ namespace IceSpider {  	};  	using Accepted = std::vector<Accept>; -	using PathElements = std::vector<std::string>; +	using PathElements = std::vector<std::string_view>;  	using OptionalString = std::optional<std::string_view>;  	using ContentTypeSerializer = std::pair<MimeType, Slicer::SerializerPtr>;  | 
