util/UriRelative: use StringIsEqual()
This commit is contained in:
parent
ee36a48dbb
commit
15fbd2b4ab
@ -28,6 +28,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "UriRelative.hxx"
|
#include "UriRelative.hxx"
|
||||||
|
#include "StringAPI.hxx"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -50,7 +51,7 @@ uri_is_child(const char *parent, const char *child) noexcept
|
|||||||
bool
|
bool
|
||||||
uri_is_child_or_same(const char *parent, const char *child) noexcept
|
uri_is_child_or_same(const char *parent, const char *child) noexcept
|
||||||
{
|
{
|
||||||
return strcmp(parent, child) == 0 || uri_is_child(parent, child);
|
return StringIsEqual(parent, child) || uri_is_child(parent, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string
|
std::string
|
||||||
|
Loading…
Reference in New Issue
Block a user