From de05f69507af44e386d6dae4aad35f482bfc1f70 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Fri, 23 Sep 2016 21:15:55 +0200 Subject: [PATCH] Fixed compiler warning --- src/platformTools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platformTools.cpp b/src/platformTools.cpp index 7f3127f..a066009 100644 --- a/src/platformTools.cpp +++ b/src/platformTools.cpp @@ -33,8 +33,8 @@ path getBinPath() { // Convert to boost::filesystem::path string pathString(buffer.data()); logging::debugFormat("Bin path: '{}'", pathString); - static path binPath(boost::filesystem::canonical(pathString).make_preferred()); - return binPath; + path result(boost::filesystem::canonical(pathString).make_preferred()); + return result; } catch (...) { std::throw_with_nested(std::runtime_error("Could not determine path of bin directory.")); }