X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=unit-test%2Fbase64_test.cpp;h=90882c31cb6fc73b9a4c1d23b36ba5c6531ab6dc;hb=c4e32e6af54000d4ef22b74e4c29529151f695e1;hp=e37d2995191ce4b56f75c77759da4e2a18cf55d8;hpb=4c19175d9873c39e4cf9f18f887226c3529802d7;p=casparcg diff --git a/unit-test/base64_test.cpp b/unit-test/base64_test.cpp index e37d29951..90882c31c 100644 --- a/unit-test/base64_test.cpp +++ b/unit-test/base64_test.cpp @@ -24,26 +24,22 @@ #include #include +#include -#include #include #include #include namespace { - static const char DICTIONARY[] = - { - 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', - 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', - '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', - '/', '+' - }; - const std::set& get_dictionary() { - static const std::set dictionary( - DICTIONARY, DICTIONARY + sizeof(DICTIONARY)); + static const std::set dictionary{ + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', + 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', + '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', + '/', '+' + }; return dictionary; }