Skip to content

Commit 5a9f3bc

Browse files
committed
Move dotSegment and dotDotSegment back into local variables, as suggested by @toughengineer
1 parent 1049491 commit 5a9f3bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Release/src/uri/uri.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ namespace web { namespace details
1919
{
2020
namespace
2121
{
22-
const ::utility::string_t dotSegment = _XPLATSTR(".");
23-
const ::utility::string_t dotDotSegment = _XPLATSTR("..");
24-
2522
/// <summary>
2623
/// Unreserved characters are those that are allowed in a URI but do not have a reserved purpose. They include:
2724
/// - A-Z
@@ -445,6 +442,9 @@ namespace
445442
// 5.2.4. Remove Dot Segments https://tools.ietf.org/html/rfc3986#section-5.2.4
446443
void removeDotSegments(uri_builder &builder)
447444
{
445+
const ::utility::string_t dotSegment = _XPLATSTR(".");
446+
const ::utility::string_t dotDotSegment = _XPLATSTR("..");
447+
448448
if (builder.path().find(_XPLATSTR('.')) == utility::string_t::npos)
449449
return;
450450

0 commit comments

Comments
 (0)