diff --git a/Foundation/include/Poco/URI.h b/Foundation/include/Poco/URI.h index 950a79c66..258b0af9f 100644 --- a/Foundation/include/Poco/URI.h +++ b/Foundation/include/Poco/URI.h @@ -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& segments); + void getPathSegments(std::vector& segments) const; /// Places the single path segments (delimited by slashes) into the /// given vector. diff --git a/Foundation/src/URI.cpp b/Foundation/src/URI.cpp index 0c2d2312e..025161ae7 100644 --- a/Foundation/src/URI.cpp +++ b/Foundation/src/URI.cpp @@ -615,7 +615,7 @@ void URI::removeDotSegments(bool removeLeading) } -void URI::getPathSegments(std::vector& segments) +void URI::getPathSegments(std::vector& segments) const { getPathSegments(_path, segments); }