mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-21 20:09:00 -05:00
Replaced std::getline usages with new ghoul::getline
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include <ghoul/io/texture/texturereader.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
#include <ghoul/misc/dictionary.h>
|
||||
#include <ghoul/misc/stringhelper.h>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
|
||||
@@ -175,7 +176,7 @@ bool LabelParser::create() {
|
||||
double stopTime = 0.0;
|
||||
std::string line;
|
||||
do {
|
||||
std::getline(file, line);
|
||||
ghoul::getline(file, line);
|
||||
|
||||
line.erase(std::remove(line.begin(), line.end(), '"'), line.end());
|
||||
line.erase(std::remove(line.begin(), line.end(), ' '), line.end());
|
||||
@@ -227,7 +228,7 @@ bool LabelParser::create() {
|
||||
startTime = SpiceManager::ref().ephemerisTimeFromDate(start);
|
||||
count++;
|
||||
|
||||
std::getline(file, line);
|
||||
ghoul::getline(file, line);
|
||||
line.erase(std::remove(line.begin(), line.end(), '"'), line.end());
|
||||
line.erase(std::remove(line.begin(), line.end(), ' '), line.end());
|
||||
line.erase(std::remove(line.begin(), line.end(), '\r'), line.end());
|
||||
|
||||
Reference in New Issue
Block a user