Skip to content

Commit 9b87050

Browse files
author
Lauris Kaplinski
committed
Fixed boost constexpr
Signed-off-by: Lauris Kaplinski <lauris@raulwalter.com>
1 parent d119444 commit 9b87050

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

libcdoc/CDoc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

libcdoc/CDocChipher.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef CDOCCHIPHER_H
22
#define CDOCCHIPHER_H
33

4+
#include <cstdint>
45
#include <map>
56
#include "CDocReader.h"
67
#include "CDocWriter.h"

test/libcdoc_boost.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

3535
const map<string, string> ExpectedParsedLabel {
3636
{"v", "1"},

0 commit comments

Comments
 (0)