mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 04:20:14 -05:00
Replaced std::getline usages with new ghoul::getline
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <ghoul/filesystem/filesystem.h>
|
||||
#include <ghoul/font/fontmanager.h>
|
||||
#include <ghoul/font/fontrenderer.h>
|
||||
#include <ghoul/misc/stringhelper.h>
|
||||
#include <ghoul/misc/templatefactory.h>
|
||||
#include <ghoul/io/texture/texturereader.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
@@ -482,7 +483,7 @@ bool RenderableDUMeshes::readSpeckFile() {
|
||||
// (signaled by the keywords 'datavar', 'texturevar', and 'texture')
|
||||
std::string line;
|
||||
while (true) {
|
||||
std::getline(file, line);
|
||||
ghoul::getline(file, line);
|
||||
|
||||
if (file.eof()) {
|
||||
break;
|
||||
@@ -547,13 +548,13 @@ bool RenderableDUMeshes::readSpeckFile() {
|
||||
str >> dummy;
|
||||
} while (dummy != "{");
|
||||
|
||||
std::getline(file, line);
|
||||
ghoul::getline(file, line);
|
||||
std::stringstream dim(line);
|
||||
dim >> mesh.numU >> mesh.numV;
|
||||
|
||||
// We can now read the vertices data:
|
||||
for (int l = 0; l < mesh.numU * mesh.numV; ++l) {
|
||||
std::getline(file, line);
|
||||
ghoul::getline(file, line);
|
||||
if (line.substr(0, 1) == "}") {
|
||||
break;
|
||||
}
|
||||
@@ -605,7 +606,7 @@ bool RenderableDUMeshes::readSpeckFile() {
|
||||
//}
|
||||
}
|
||||
|
||||
std::getline(file, line);
|
||||
ghoul::getline(file, line);
|
||||
if (line.substr(0, 1) == "}") {
|
||||
_renderingMeshesMap.insert({ meshIndex++, mesh });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user