Fix Key::WriteToFile method being not const qualified

This commit is contained in:
Leonetienne committed 2022-05-27 17:04:05 +02:00
1 parent 5365233b43
commit 191b17c631
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ namespace Leonetienne::GCrypt {
return key;
}
void Key::WriteToFile(const std::string& path) {
void Key::WriteToFile(const std::string& path) const {
// Create an ofilestream
std::ofstream ofs(path, std::ios::out | std::ios::binary);