make URI::getPathSegments() const

This commit is contained in:
Günter Obiltschnig 2021-04-11 16:37:41 +02:00
parent 7e9d10f488
commit 0a2a175f8a
2 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ public:
/// such as in a Windows path containing a drive letter, a dot segment (./)
/// is prepended in accordance with section 3.3 of RFC 3986.
void getPathSegments(std::vector<std::string>& segments);
void getPathSegments(std::vector<std::string>& segments) const;
/// Places the single path segments (delimited by slashes) into the
/// given vector.

View File

@ -615,7 +615,7 @@ void URI::removeDotSegments(bool removeLeading)
}
void URI::getPathSegments(std::vector<std::string>& segments)
void URI::getPathSegments(std::vector<std::string>& segments) const
{
getPathSegments(_path, segments);
}