From aa5cd43743b301e16ba5549ca3e6a5569e98b65c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 19 Oct 2017 07:34:26 -0700 Subject: [PATCH] Shorten some used type names --- examples/alure-physfs.cpp | 4 ++-- src/context.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/alure-physfs.cpp b/examples/alure-physfs.cpp index e44efdb..d7f2a34 100644 --- a/examples/alure-physfs.cpp +++ b/examples/alure-physfs.cpp @@ -21,7 +21,7 @@ namespace // Inherit from std::streambuf to handle custom I/O (PhysFS for this example) class StreamBuf final : public std::streambuf { - using BufferArrayT = alure::Array; + using BufferArrayT = alure::Array; BufferArrayT mBuffer; PHYSFS_File *mFile; @@ -32,7 +32,7 @@ class StreamBuf final : public std::streambuf { // Read in the next chunk of data, and set the read pointers on // success PHYSFS_sint64 got = PHYSFS_read(mFile, - mBuffer.data(), sizeof(BufferArrayT::value_type), mBuffer.size() + mBuffer.data(), sizeof(char_type), mBuffer.size() ); if(got != -1) setg(mBuffer.data(), mBuffer.data(), mBuffer.data()+got); } diff --git a/src/context.cpp b/src/context.cpp index 6be7c55..48d3b96 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -97,7 +97,7 @@ std::mutex mGlobalCtxMutex; // but not all Windows compilers support it. So we have to make our own istream // that accepts UTF-8 paths and forwards to Unicode-aware I/O functions. class StreamBuf final : public std::streambuf { - alure::Array mBuffer; + alure::Array mBuffer; HANDLE mFile; int_type underflow() override -- 2.11.4.GIT