From 8f8edbbf1618497bae371d2ee4138492604585b5 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 26 Jan 2017 16:27:41 -1000 Subject: [PATCH] Windows fix --- include/athena/FileWriter.hpp | 2 +- src/athena/FileWriter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/athena/FileWriter.hpp b/include/athena/FileWriter.hpp index 636b872..5a6cd02 100644 --- a/include/athena/FileWriter.hpp +++ b/include/athena/FileWriter.hpp @@ -82,7 +82,7 @@ public: : m_overwrite(overwrite), m_globalErr(globalErr) { #if _WIN32 - m_filename = utility::utf8ToWide(m_filename); + m_filename = utility::utf8ToWide(filename); #else m_filename = filename; #endif diff --git a/src/athena/FileWriter.cpp b/src/athena/FileWriter.cpp index 4b1f153..075b38f 100644 --- a/src/athena/FileWriter.cpp +++ b/src/athena/FileWriter.cpp @@ -17,7 +17,7 @@ FileWriter::FileWriter(const std::string& filename, bool overwrite, bool globalE m_globalErr(globalErr) { #if _WIN32 - m_filename = utility::utf8ToWide(m_filename); + m_filename = utility::utf8ToWide(filename); #else m_filename = filename; #endif