Bug 1317954 - Replace string literals containing escaped characters with raw string literals in xpcom/. draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Wed, 16 Nov 2016 14:26:03 +0200
changeset 441044 fb7a697c952ef7e745e8e4369c6f56079e54937f
parent 441043 6ae98db03f15a9cd72f1f399282e381a05e4f488
child 441045 541a3496ba9fe73d3e9cd3924191d78d85e11887
push id36341
push userbmo:bpostelnicu@mozilla.com
push dateFri, 18 Nov 2016 09:38:52 +0000
bugs1317954
milestone53.0a1
Bug 1317954 - Replace string literals containing escaped characters with raw string literals in xpcom/. MozReview-Commit-ID: INLv2bNrLYX
xpcom/tests/TestArguments.cpp
--- a/xpcom/tests/TestArguments.cpp
+++ b/xpcom/tests/TestArguments.cpp
@@ -13,13 +13,13 @@ int main(int argc, char* argv[]) {
   if (strcmp("seamonkey", argv[4]) != 0)
       return 4;
   if (strcmp("foo", argv[5]) != 0)
       return 5;
   if (strcmp("bar", argv[6]) != 0)
       return 6;
   if (strcmp("argument with spaces", argv[7]) != 0)
       return 7;
-  if (strcmp("\"argument with quotes\"", argv[8]) != 0)
+  if (strcmp(R"("argument with quotes")", argv[8]) != 0)
       return 8;
   
   return 0;
 }