Skip to content

Commit

Permalink
Fixed boost constexpr
Browse files Browse the repository at this point in the history
Signed-off-by: Lauris Kaplinski <[email protected]>
  • Loading branch information
Lauris Kaplinski committed Jan 30, 2025
1 parent d119444 commit 9b87050
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libcdoc/CDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ getErrorStr(int64_t code) {
for (auto& r : results) {
if (r.code == code) return std::string(r.message);
}
return "Unknown result code " + code;
return "Unknown result code " + std::to_string(code);
}

}
Expand Down
1 change: 1 addition & 0 deletions libcdoc/CDocChipher.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef CDOCCHIPHER_H
#define CDOCCHIPHER_H

#include <cstdint>
#include <map>
#include "CDocReader.h"
#include "CDocWriter.h"
Expand Down
10 changes: 5 additions & 5 deletions test/libcdoc_boost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ constexpr string SourceFile("test_data.txt");
/**
* @brief Encrypted file name.
*/
constexpr string TargetFile("test_data.txt.cdoc");
const string TargetFile("test_data.txt.cdoc");

constexpr string Label("Proov");
const string Label("Proov");

constexpr string Password("Proov123");
const string Password("Proov123");

constexpr string_view AESKey = "E165475C6D8B9DD0B696EE2A37D7176DFDF4D7B510406648E70BAE8E80493E5E"sv;
const string_view AESKey = "E165475C6D8B9DD0B696EE2A37D7176DFDF4D7B510406648E70BAE8E80493E5E"sv;

constexpr string_view CDOC2HEADER = "CDOC\x02"sv;
const string_view CDOC2HEADER = "CDOC\x02"sv;

const map<string, string> ExpectedParsedLabel {
{"v", "1"},
Expand Down

0 comments on commit 9b87050

Please sign in to comment.