Skip to content

Commit 6d253c1

Browse files
author
Steve Hanson
committed
remove compiler warning
1 parent 28bcbd3 commit 6d253c1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/unittest/uritest.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ EXPECT_TRUE(u.GetFragStringLength() == len);
143143
}
144144

145145
TEST(Uri, Parse_UTF16) {
146-
typedef GenericValue<UTF16<> > Value;
147-
typedef GenericUri<Value, MemoryPoolAllocator<> > UriType;
146+
typedef GenericValue<UTF16<> > Value16;
147+
typedef GenericUri<Value16, MemoryPoolAllocator<> > UriType;
148148
MemoryPoolAllocator<CrtAllocator> allocator;
149-
Value v;
150-
Value w;
149+
Value16 v;
150+
Value16 w;
151151

152152
v.SetString(L"http://auth/path/xxx?query#frag", allocator);
153153
UriType u = UriType(v, &allocator);
@@ -161,7 +161,7 @@ u.Get(w, allocator);
161161
EXPECT_TRUE(*w.GetString() == *v.GetString());
162162

163163
#if RAPIDJSON_HAS_STDSTRING
164-
typedef std::basic_string<Value::Ch> String;
164+
typedef std::basic_string<Value16::Ch> String;
165165
String str = L"http://auth/path/xxx?query#frag";
166166
const UriType uri = UriType(str);
167167
EXPECT_TRUE(UriType::GetScheme(uri) == L"http:");
@@ -237,8 +237,8 @@ EXPECT_TRUE(u.GetQueryStringLength() == 0);
237237
EXPECT_TRUE(StrCmp(u.GetFragString(), L"#frag/stuff") == 0);
238238
EXPECT_TRUE(StrCmp(u.GetString(), L"http://auth#frag/stuff") == 0);
239239

240-
const Value::Ch c[] = { '#', 'f', 'r', 'a', 'g', '/', 's', 't', 'u', 'f', 'f', '\0'};
241-
SizeType len = internal::StrLen<Value::Ch>(c);
240+
const Value16::Ch c[] = { '#', 'f', 'r', 'a', 'g', '/', 's', 't', 'u', 'f', 'f', '\0'};
241+
SizeType len = internal::StrLen<Value16::Ch>(c);
242242
u = UriType(c, len);
243243
EXPECT_TRUE(StrCmp(u.GetString(), L"#frag/stuff") == 0);
244244
EXPECT_TRUE(u.GetStringLength() == len);
@@ -438,8 +438,8 @@ EXPECT_TRUE(StrCmp(res.GetString(), "http://a/b/c/g#s/../x") == 0);
438438
}
439439

440440
TEST(Uri, Resolve_UTF16) {
441-
typedef GenericValue<UTF16<> > Value;
442-
typedef GenericUri<Value> UriType;
441+
typedef GenericValue<UTF16<> > Value16;
442+
typedef GenericUri<Value16> UriType;
443443
CrtAllocator allocator;
444444

445445
// ref is full uri

0 commit comments

Comments
 (0)