From 32af03ab9929f32ae2535902d3d54aaca69d40b8 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Fri, 7 Jun 2019 23:18:45 +0530 Subject: HDB: Fix parameter type in getCount --- engines/hdb/file-manager.cpp | 2 +- engines/hdb/file-manager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/hdb/file-manager.cpp b/engines/hdb/file-manager.cpp index 0226f56b4d..b8b77f2961 100644 --- a/engines/hdb/file-manager.cpp +++ b/engines/hdb/file-manager.cpp @@ -143,7 +143,7 @@ int32 FileMan::getLength(const char *string, DataType type) { return file->ulength; } -int FileMan::getCount(char *subString, DataType type) { +int FileMan::getCount(const char *subString, DataType type) { int count = 0; Common::String fileString; diff --git a/engines/hdb/file-manager.h b/engines/hdb/file-manager.h index 15558d99cd..740bf4d1b6 100644 --- a/engines/hdb/file-manager.h +++ b/engines/hdb/file-manager.h @@ -76,7 +76,7 @@ public: Common::SeekableReadStream *findFirstData(const char *string, DataType type); int32 getLength(const char *string, DataType type); - int getCount(char *subString, DataType type); + int getCount(const char *subString, DataType type); Common::Array *findFiles(const char *string, DataType type); }; -- cgit v1.2.3