瀏覽代碼

Fix crash when passing None to Filename constructor

rdb 10 年之前
父節點
當前提交
5736e7a4b0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      dtool/src/dtoolutil/filename.h

+ 2 - 1
dtool/src/dtoolutil/filename.h

@@ -60,10 +60,11 @@ public:
     F_pattern         = 0x40,
   };
 
+  INLINE Filename(const char *filename);
+
 PUBLISHED:
   INLINE Filename(const string &filename = "");
   INLINE Filename(const wstring &filename);
-  INLINE Filename(const char *filename);
   INLINE Filename(const Filename &copy);
   Filename(const Filename &dirname, const Filename &basename);
   INLINE ~Filename();