File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ getErrorStr(int64_t code) {
4242 for (auto & r : results) {
4343 if (r.code == code) return std::string (r.message );
4444 }
45- return " Unknown result code " + code;
45+ return " Unknown result code " + std::to_string ( code) ;
4646}
4747
4848}
Original file line number Diff line number Diff line change 11#ifndef CDOCCHIPHER_H
22#define CDOCCHIPHER_H
33
4+ #include < cstdint>
45#include < map>
56#include " CDocReader.h"
67#include " CDocWriter.h"
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ constexpr string SourceFile("test_data.txt");
2222/* *
2323 * @brief Encrypted file name.
2424 */
25- constexpr string TargetFile (" test_data.txt.cdoc" );
25+ const string TargetFile (" test_data.txt.cdoc" );
2626
27- constexpr string Label (" Proov" );
27+ const string Label (" Proov" );
2828
29- constexpr string Password (" Proov123" );
29+ const string Password (" Proov123" );
3030
31- constexpr string_view AESKey = " E165475C6D8B9DD0B696EE2A37D7176DFDF4D7B510406648E70BAE8E80493E5E" sv;
31+ const string_view AESKey = " E165475C6D8B9DD0B696EE2A37D7176DFDF4D7B510406648E70BAE8E80493E5E" sv;
3232
33- constexpr string_view CDOC2HEADER = " CDOC\x02 " sv;
33+ const string_view CDOC2HEADER = " CDOC\x02 " sv;
3434
3535const map<string, string> ExpectedParsedLabel {
3636 {" v" , " 1" },
You can’t perform that action at this time.
0 commit comments