From 06142a72718e49b6550016a1314e4f16c66d7f40 Mon Sep 17 00:00:00 2001 From: Thomas Sablik Date: Wed, 15 Jul 2020 15:47:25 +0000 Subject: [PATCH] Fix constness of URI::getPathSegments --- Foundation/include/Poco/URI.h | 2 +- Foundation/src/URI.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }