diff system/file.h @ 47:5f548e5957a8

* get rid of the "deprecated conversion from string constant to ‘char*’" warnings
author thib
date Wed, 15 Apr 2009 20:26:32 +0000
parents 2c574c3d50a9
children 15a18fbe6f21
line wrap: on
line diff
--- a/system/file.h
+++ b/system/file.h
@@ -143,10 +143,10 @@ private:
 	ARCFILE* searcher[TYPEMAX];
 	/* ¥Õ¥¡¥¤¥ë¤Î¸ºß°ÌÃ֤Πinformation */
 	ARCTYPE is_archived[TYPEMAX];
-	char* filenames[TYPEMAX];
+	const char* filenames[TYPEMAX];
 	/* ¥Ç¥Õ¥©¥ë¥È¤Î information */
 	static ARCTYPE default_is_archived[TYPEMAX];
-	static char* default_dirnames[TYPEMAX];
+	static const char* default_dirnames[TYPEMAX];
 public:
 	FILESEARCH(void);
 	~FILESEARCH();
@@ -158,7 +158,7 @@ public:
 	/* Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤ò°ì¤Ä¤Î·¿¤Ë´ØÏ¢¤Å¤±¤ë */
 	void AppendFileInformation(FILETYPE type, ARCTYPE is_arc,
 		char* filename);
-	ARCFILE* MakeARCFILE(ARCTYPE tp, char* filename);
+	ARCFILE* MakeARCFILE(ARCTYPE tp, const char* filename);
 	/* fname ¤Ç»ØÄꤵ¤ì¤¿Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤ò¸¡º÷ */
 	class ARCINFO* Find(FILETYPE type, const char* fname, const char* ext=0);
 	/* ¤¢¤ë¼ïÎà¤Î¥Õ¥¡¥¤¥ë¤ò¤¹¤Ù¤Æ¥ê¥¹¥È¥¢¥Ã¥×