diff options
author | Jason Carey <jcarey@argv.me> | 2016-05-10 14:17:00 -0400 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2016-06-17 17:56:11 -0400 |
commit | 907182f4672ab2dcea1e16da5366518a4e44fa8d (patch) | |
tree | b74d4d9f97a3797b409db0f428ac05462501fa73 /src/mongo/db/query/collation/collation_index_key_test.cpp | |
parent | 737d557b1729d8d6c2892832b75630f045787ec1 (diff) | |
download | mongo-907182f4672ab2dcea1e16da5366518a4e44fa8d.tar.gz |
SERVER-24651 Add and use string data literals
Replace StringData("foo", StringData::LiteralTag()) with "foo"_sd
Diffstat (limited to 'src/mongo/db/query/collation/collation_index_key_test.cpp')
-rw-r--r-- | src/mongo/db/query/collation/collation_index_key_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/collation/collation_index_key_test.cpp b/src/mongo/db/query/collation/collation_index_key_test.cpp index 773eda2b858..88d5b13c70c 100644 --- a/src/mongo/db/query/collation/collation_index_key_test.cpp +++ b/src/mongo/db/query/collation/collation_index_key_test.cpp @@ -87,11 +87,11 @@ TEST(CollationIndexKeyTest, CollationAwareAppendCorrectlySerializesEmptyComparis TEST(CollationIndexKeyTest, CollationAwareAppendCorrectlySerializesWithEmbeddedNullByte) { CollatorInterfaceMock collator(CollatorInterfaceMock::MockType::kReverseString); BSONObjBuilder builder; - builder.append("foo", StringData("a\0b", StringData::LiteralTag())); + builder.append("foo", "a\0b"_sd); BSONObj dataObj = builder.obj(); BSONObjBuilder expectedBuilder; - expectedBuilder.append("", StringData("b\0a", StringData::LiteralTag())); + expectedBuilder.append("", "b\0a"_sd); BSONObj expectedObj = expectedBuilder.obj(); BSONObjBuilder out; |