Fix Key::WriteToFile method being not const qualified
This commit is contained in:
parent
5365233b43
commit
191b17c631
@ -21,7 +21,7 @@ namespace Leonetienne::GCrypt {
|
|||||||
static Key LoadFromFile(const std::string& path);
|
static Key LoadFromFile(const std::string& path);
|
||||||
|
|
||||||
//! Will save a keyfile
|
//! Will save a keyfile
|
||||||
void WriteToFile(const std::string& path);
|
void WriteToFile(const std::string& path) const;
|
||||||
|
|
||||||
Key();
|
Key();
|
||||||
Key(const Key& k);
|
Key(const Key& k);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef GCRYPT_VERSION_H
|
#ifndef GCRYPT_VERSION_H
|
||||||
#define GCRYPT_VERSION_H
|
#define GCRYPT_VERSION_H
|
||||||
|
|
||||||
#define GCRYPT_VERSION 0.235
|
#define GCRYPT_VERSION 0.236
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ namespace Leonetienne::GCrypt {
|
|||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Key::WriteToFile(const std::string& path) {
|
void Key::WriteToFile(const std::string& path) const {
|
||||||
// Create an ofilestream
|
// Create an ofilestream
|
||||||
std::ofstream ofs(path, std::ios::out | std::ios::binary);
|
std::ofstream ofs(path, std::ios::out | std::ios::binary);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user