mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 21:18:32 -05:00
Feature/path normalization (#1674)
* Path normalization (making sure there are fewer cases of '"..."' * Using more std::filesystem::path instead of std::string * Update Ghoul
This commit is contained in:
@@ -121,7 +121,7 @@ std::vector<float> HistogramManager::readValues(TSP* tsp, unsigned int brickInde
|
||||
return voxelValues;
|
||||
}
|
||||
|
||||
bool HistogramManager::loadFromFile(const std::string& filename) {
|
||||
bool HistogramManager::loadFromFile(const std::filesystem::path& filename) {
|
||||
std::ifstream file(filename, std::ios::in | std::ios::binary);
|
||||
if (!file.is_open()) {
|
||||
return false;
|
||||
@@ -151,7 +151,7 @@ bool HistogramManager::loadFromFile(const std::string& filename) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool HistogramManager::saveToFile(const std::string& filename) {
|
||||
bool HistogramManager::saveToFile(const std::filesystem::path& filename) {
|
||||
std::ofstream file(filename, std::ios::out | std::ios::binary);
|
||||
if (!file.is_open()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user