Skip to content

Commit cf6788b

Browse files
committed
Added more const keywords
1 parent 3dc1659 commit cf6788b

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

Core/Media/AnyFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class AnyFile : public CoreObject, public MediaFile {
9191
protected:
9292

9393
virtual bool isCompatiblePath(const fs::path &path) const = 0;
94-
virtual bool isCompatibleBuffer(const u8 *buf, isize len) = 0;
94+
virtual bool isCompatibleBuffer(const u8 *buf, isize len) const = 0;
9595
bool isCompatibleBuffer(const Buffer<u8> &buffer);
9696
isize readFromBuffer(const u8 *buf, isize len) throws override;
9797
isize readFromBuffer(const Buffer<u8> &buffer) throws;

Core/Media/DiskFiles/ADFFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class ADFFile : public FloppyFile {
7676
public:
7777

7878
bool isCompatiblePath(const fs::path &path) const override { return isCompatible(path); }
79-
bool isCompatibleBuffer(const u8 *buf, isize len) override { return isCompatible(buf, len); }
79+
bool isCompatibleBuffer(const u8 *buf, isize len) const override { return isCompatible(buf, len); }
8080
FileType type() const override { return FileType::ADF; }
8181
void finalizeRead() override;
8282

Core/Media/DiskFiles/ADZFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ADZFile : public FloppyFile {
4848
FileType type() const override { return FileType::ADZ; }
4949
u64 fnv64() const override { return adf.fnv64(); }
5050
bool isCompatiblePath(const fs::path &path) const override { return isCompatible(path); }
51-
bool isCompatibleBuffer(const u8 *buf, isize len) override { return isCompatible(buf, len); }
51+
bool isCompatibleBuffer(const u8 *buf, isize len) const override { return isCompatible(buf, len); }
5252
void finalizeRead() throws override;
5353

5454

Core/Media/DiskFiles/DMSFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DMSFile : public FloppyFile {
4545
FileType type() const override { return FileType::DMS; }
4646
u64 fnv64() const override { return adf.fnv64(); }
4747
bool isCompatiblePath(const fs::path &path) const override { return isCompatible(path); }
48-
bool isCompatibleBuffer(const u8 *buf, isize len) override { return isCompatible(buf, len); }
48+
bool isCompatibleBuffer(const u8 *buf, isize len) const override { return isCompatible(buf, len); }
4949
void finalizeRead() throws override;
5050

5151

Core/Media/DiskFiles/EADFFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class EADFFile : public FloppyFile {
8787

8888
FileType type() const override { return FileType::EADF; }
8989
bool isCompatiblePath(const fs::path &path) const override { return isCompatible(path); }
90-
bool isCompatibleBuffer(const u8 *buf, isize len) override { return isCompatible(buf, len); }
90+
bool isCompatibleBuffer(const u8 *buf, isize len) const override { return isCompatible(buf, len); }
9191
void finalizeRead() throws override;
9292

9393

Core/Media/DiskFiles/EXEFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class EXEFile : public FloppyFile {
4545
FileType type() const override { return FileType::EXE; }
4646
u64 fnv64() const override { return adf.fnv64(); }
4747
bool isCompatiblePath(const fs::path &path) const override { return isCompatible(path); }
48-
bool isCompatibleBuffer(const u8 *buf, isize len) override { return isCompatible(buf, len); }
48+
bool isCompatibleBuffer(const u8 *buf, isize len) const override { return isCompatible(buf, len); }
4949
void finalizeRead() throws override;
5050

5151

Core/Media/DiskFiles/HDFFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class HDFFile : public DiskFile {
3939
static bool isOversized(isize size) { return size > MB(504); }
4040

4141
bool isCompatiblePath(const fs::path &path) const override { return isCompatible(path); }
42-
bool isCompatibleBuffer(const u8 *buf, isize len) override { return isCompatible(buf, len); }
42+
bool isCompatibleBuffer(const u8 *buf, isize len) const override { return isCompatible(buf, len); }
4343

4444
void finalizeRead() override;
4545

Core/Media/DiskFiles/HDZFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class HDZFile : public DiskFile {
4848
FileType type() const override { return FileType::HDZ; }
4949
u64 fnv64() const override { return hdf.fnv64(); }
5050
bool isCompatiblePath(const fs::path &path) const override { return isCompatible(path); }
51-
bool isCompatibleBuffer(const u8 *buf, isize len) override { return isCompatible(buf, len); }
51+
bool isCompatibleBuffer(const u8 *buf, isize len) const override { return isCompatible(buf, len); }
5252
void finalizeRead() throws override;
5353

5454

Core/Media/DiskFiles/IMGFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class IMGFile : public FloppyFile {
6060
//
6161

6262
bool isCompatiblePath(const fs::path &path) const override { return isCompatible(path); }
63-
bool isCompatibleBuffer(const u8 *buf, isize len) override { return isCompatible(buf, len); }
63+
bool isCompatibleBuffer(const u8 *buf, isize len) const override { return isCompatible(buf, len); }
6464
FileType type() const override { return FileType::IMG; }
6565

6666

Core/Media/DiskFiles/STFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class STFile : public FloppyFile {
5858
//
5959

6060
bool isCompatiblePath(const fs::path &path) const override { return isCompatible(path); }
61-
bool isCompatibleBuffer(const u8 *buf, isize len) override { return isCompatible(buf, len); }
61+
bool isCompatibleBuffer(const u8 *buf, isize len) const override { return isCompatible(buf, len); }
6262
FileType type() const override { return FileType::IMG; }
6363

6464

0 commit comments

Comments
 (0)