From 3e966d73af3c1a51c2c443b6eaeff43ed647741d Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Fri, 15 Jan 2016 19:35:59 -0800 Subject: [PATCH] Use SystemStringView rather than raw std::{w}string for simplicity --- hecl/lib/Runtime/ShaderCacheManager.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/hecl/lib/Runtime/ShaderCacheManager.cpp b/hecl/lib/Runtime/ShaderCacheManager.cpp index 357c5c3d1..766759949 100644 --- a/hecl/lib/Runtime/ShaderCacheManager.cpp +++ b/hecl/lib/Runtime/ShaderCacheManager.cpp @@ -64,11 +64,7 @@ void ShaderCacheManager::bootstrapIndex() m_idxFr.close(); m_datFr.close(); -#if _WIN32 - SystemString idxFilename = m_idxFr.wfilename(); -#else - SystemString idxFilename = m_idxFr.filename(); -#endif + SystemStringView idxFilename(m_idxFr.filename()); FILE* idxFp = HECL::Fopen(idxFilename.c_str(), _S("wb")); if (!idxFp) @@ -80,11 +76,7 @@ void ShaderCacheManager::bootstrapIndex() fwrite(&ZERO64, 1, 8, idxFp); fclose(idxFp); -#if _WIN32 - SystemString datFilename = m_datFr.wfilename(); -#else - SystemString datFilename = m_datFr.filename(); -#endif + SystemStringView datFilename(m_datFr.filename()); FILE* datFp = HECL::Fopen(datFilename.c_str(), _S("wb")); if (!datFp)