util/UriRelative: use std::string_view internally
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008-2021 Max Kellermann <max.kellermann@gmail.com>
|
||||
* Copyright 2008-2022 Max Kellermann <max.kellermann@gmail.com>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -27,8 +27,7 @@
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef URI_RELATIVE_HXX
|
||||
#define URI_RELATIVE_HXX
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
@@ -58,5 +57,3 @@ uri_apply_base(std::string_view uri, std::string_view base) noexcept;
|
||||
std::string
|
||||
uri_apply_relative(std::string_view relative_uri,
|
||||
std::string_view base_uri) noexcept;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user