mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
tests: Fixed unit test compiling
This commit is contained in:
@@ -30,7 +30,7 @@ namespace hex {
|
||||
|
||||
~File();
|
||||
|
||||
bool isValid() { return this->m_file != nullptr; }
|
||||
bool isValid() const { return this->m_file != nullptr; }
|
||||
|
||||
void seek(u64 offset);
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace hex {
|
||||
void write(const std::vector<u8> &bytes);
|
||||
void write(const std::string &string);
|
||||
|
||||
size_t getSize();
|
||||
size_t getSize() const;
|
||||
void setSize(u64 size);
|
||||
|
||||
auto getHandle() { return this->m_file; }
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace hex {
|
||||
fwrite(string.data(), string.size(), 1, this->m_file);
|
||||
}
|
||||
|
||||
size_t File::getSize() {
|
||||
size_t File::getSize() const {
|
||||
if (!isValid()) return 0;
|
||||
|
||||
auto startPos = ftello64(this->m_file);
|
||||
|
||||
Reference in New Issue
Block a user