Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

Commit 75aa45ba authored by Richard Brosig's avatar Richard Brosig
Browse files

Fixed TextFileParser::TokenGroup constrouctor not setting _caseSensitiveKeys flag.

parent aae87572
......@@ -198,7 +198,7 @@ namespace campvis {
}
TextFileParser::TokenGroup* TextFileParser::ItemSeparatorLines::operator()(std::istream& stream, bool caseSensitiveKeys, const std::string& delimiters, const std::string& whitespace) {
TokenGroup* rootNode = new TokenGroup();
TokenGroup* rootNode = new TokenGroup(caseSensitiveKeys);
std::stack<TokenGroup*> groupHierarchy;
groupHierarchy.push(rootNode);
std::string currentLine;
......@@ -212,7 +212,7 @@ namespace campvis {
if (currentLine.substr(currentLine.length() - 1, 1) == "{") {
std::string groupName = StringUtils::trim(currentLine.substr(0, currentLine.length() - 1));
TokenGroup* tg = new TokenGroup();
TokenGroup* tg = new TokenGroup(caseSensitiveKeys);
groupHierarchy.top()->_tokenGroups.insert(std::make_pair(groupName, tg));
groupHierarchy.push(tg);
}
......
......@@ -52,6 +52,10 @@ namespace campvis {
public:
struct CAMPVIS_CORE_API TokenGroup {
public:
TokenGroup(bool caseSensitiveKeys)
: _caseSensitiveKeys(caseSensitiveKeys)
{};
~TokenGroup();
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment