util/StringPointer: rename typedef pointer to pointer_type

This commit is contained in:
Max Kellermann
2016-04-12 22:49:03 +02:00
parent fd5d42836f
commit 9b85446808
17 changed files with 116 additions and 111 deletions

View File

@@ -41,19 +41,19 @@ namespace FOpenMode {
/**
* Open mode for writing text files.
*/
constexpr PathTraitsFS::const_pointer WriteText = PATH_LITERAL("w");
constexpr PathTraitsFS::const_pointer_type WriteText = PATH_LITERAL("w");
/**
* Open mode for appending text files.
*/
constexpr PathTraitsFS::const_pointer AppendText = PATH_LITERAL("a");
constexpr PathTraitsFS::const_pointer_type AppendText = PATH_LITERAL("a");
}
/**
* Wrapper for fopen() that uses #Path names.
*/
static inline FILE *
FOpen(Path file, PathTraitsFS::const_pointer mode)
FOpen(Path file, PathTraitsFS::const_pointer_type mode)
{
#ifdef WIN32
return _tfopen(file.c_str(), mode);