diff --git a/components/files/constrainedfilestream.cpp b/components/files/constrainedfilestream.cpp index 23eab2088..3e5d0c245 100644 --- a/components/files/constrainedfilestream.cpp +++ b/components/files/constrainedfilestream.cpp @@ -5,13 +5,16 @@ #include "lowlevelfile.hpp" -namespace Files +namespace { +// somewhat arbitrary though 64KB buffers didn't seem to improve performance any +const size_t sBufferSize = 4096; +} +namespace Files +{ class ConstrainedFileStreamBuf : public std::streambuf { - // somewhat arbitrary though 64KB buffers didn't seem to improve performance any - static const size_t sBufferSize = 4096; size_t mOrigin; size_t mSize;