const changes to remove a few more warnings about string const conversions.

This commit is contained in:
Arthur Ice
2013-03-10 14:15:15 -07:00
parent e53ae5f6d5
commit 0438877203
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ DATLoader::~DATLoader()
this->Close(); this->Close();
} }
int DATLoader::Open(char *base_path, char *zone_name, Archive *archive) { int DATLoader::Open(char *base_path, const char *zone_name, Archive *archive) {
#ifdef DEBUGDAT #ifdef DEBUGDAT
printf("DATLoader::Open %s, [%s]\n", base_path, zone_name); printf("DATLoader::Open %s, [%s]\n", base_path, zone_name);
+1 -1
View File
@@ -54,7 +54,7 @@ class DATLoader : public FileLoader {
public: public:
DATLoader(); DATLoader();
~DATLoader(); ~DATLoader();
virtual int Open(char *base_path, char *zone_name, Archive *archive); virtual int Open(char *base_path, const char *zone_name, Archive *archive);
virtual int Close(); virtual int Close();
}; };
+1 -1
View File
@@ -9,7 +9,7 @@ public:
FileLoader() {} FileLoader() {}
virtual ~FileLoader() {} virtual ~FileLoader() {}
virtual int Open(char *base_path, char *zone_name, Archive *archive) = 0; virtual int Open(char *base_path, const char *zone_name, Archive *archive) = 0;
virtual int Close() = 0; virtual int Close() = 0;
Content_3D model_data; Content_3D model_data;
+1 -1
View File
@@ -20,7 +20,7 @@ TERLoader::~TERLoader() {
this->Close(); this->Close();
} }
int TERLoader::Open(char *base_path, char *zone_name, Archive *archive) { int TERLoader::Open(char *base_path, const char *zone_name, Archive *archive) {
#ifdef DEBUGTER #ifdef DEBUGTER
printf("TERLoader::Open %s, [%s]\n", base_path, zone_name); printf("TERLoader::Open %s, [%s]\n", base_path, zone_name);
+1 -1
View File
@@ -55,7 +55,7 @@ class TERLoader : public FileLoader {
public: public:
TERLoader(); TERLoader();
~TERLoader(); ~TERLoader();
virtual int Open(char *base_path, char *zone_name, Archive *archive); virtual int Open(char *base_path, const char *zone_name, Archive *archive);
virtual int Close(); virtual int Close();
}; };
+1 -1
View File
@@ -461,7 +461,7 @@ WLDLoader::~WLDLoader() {
this->Close(); this->Close();
} }
int WLDLoader::Open(char *base_path, char *zone_name, Archive *archive) { int WLDLoader::Open(char *base_path, const char *zone_name, Archive *archive) {
uchar *buffer; uchar *buffer;
int buf_len; int buf_len;
int i, j, vc, pc, bc, mlen, *pmap; int i, j, vc, pc, bc, mlen, *pmap;
+1 -1
View File
@@ -34,7 +34,7 @@ public:
WLDLoader(); WLDLoader();
~WLDLoader(); ~WLDLoader();
virtual int Open(char *base_path, char *zone_name, Archive *archive); virtual int Open(char *base_path, const char *zone_name, Archive *archive);
virtual int Close(); virtual int Close();
int fragcount; int fragcount;
+1 -1
View File
@@ -22,7 +22,7 @@ ZonLoader::~ZonLoader() {
this->Close(); this->Close();
} }
int ZonLoader::Open(char *base_path, char *zone_name, Archive *archive) { int ZonLoader::Open(char *base_path, const char *zone_name, Archive *archive) {
uchar *buffer, *orig_buffer; uchar *buffer, *orig_buffer;
int buf_len; int buf_len;
+1 -1
View File
@@ -36,7 +36,7 @@ public:
ZonLoader(); ZonLoader();
~ZonLoader(); ~ZonLoader();
virtual int Open(char *base_path, char *zone_name, Archive *archive); virtual int Open(char *base_path, const char *zone_name, Archive *archive);
virtual int Close(); virtual int Close();
private: private:
+1 -1
View File
@@ -24,7 +24,7 @@ Zonv4Loader::~Zonv4Loader()
this->Close(); this->Close();
} }
int Zonv4Loader::Open(char *base_path, char *zone_name, Archive *archive) int Zonv4Loader::Open(char *base_path, const char *zone_name, Archive *archive)
{ {
uchar *buffer; uchar *buffer;
+1 -1
View File
@@ -32,7 +32,7 @@ public:
Zonv4Loader(); Zonv4Loader();
~Zonv4Loader(); ~Zonv4Loader();
virtual int Open(char *base_path, char *zone_name, Archive *archive); virtual int Open(char *base_path, const char *zone_name, Archive *archive);
virtual int Close(); virtual int Close();
private: private: