Fixed compiler warning
This commit is contained in:
parent
2fdd98f5b3
commit
de05f69507
|
@ -33,8 +33,8 @@ path getBinPath() {
|
||||||
// Convert to boost::filesystem::path
|
// Convert to boost::filesystem::path
|
||||||
string pathString(buffer.data());
|
string pathString(buffer.data());
|
||||||
logging::debugFormat("Bin path: '{}'", pathString);
|
logging::debugFormat("Bin path: '{}'", pathString);
|
||||||
static path binPath(boost::filesystem::canonical(pathString).make_preferred());
|
path result(boost::filesystem::canonical(pathString).make_preferred());
|
||||||
return binPath;
|
return result;
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
std::throw_with_nested(std::runtime_error("Could not determine path of bin directory."));
|
std::throw_with_nested(std::runtime_error("Could not determine path of bin directory."));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue