summaryrefslogtreecommitdiff
path: root/src/CommonAPI/IniFileReader.cpp
diff options
context:
space:
mode:
authorLutz Bichler <Lutz.Bichler@bmw.de>2020-10-27 10:02:03 +0100
committerLutz Bichler <Lutz.Bichler@bmw.de>2020-10-27 10:02:03 +0100
commit89720d3c63bbd22cbccc80cdc92c2f2dd20193ba (patch)
tree591c45dba85c98fdd8e141827bdb6e82aaad4f59 /src/CommonAPI/IniFileReader.cpp
parent99ebf3461f51e4899f06457d6aafdaa4adecd278 (diff)
downloadgenivi-common-api-runtime-89720d3c63bbd22cbccc80cdc92c2f2dd20193ba.tar.gz
capicxx-core-runtime 3.2.0HEAD3.2.0master
Diffstat (limited to 'src/CommonAPI/IniFileReader.cpp')
-rw-r--r--src/CommonAPI/IniFileReader.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CommonAPI/IniFileReader.cpp b/src/CommonAPI/IniFileReader.cpp
index 94057e0..28b5013 100644
--- a/src/CommonAPI/IniFileReader.cpp
+++ b/src/CommonAPI/IniFileReader.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
+// Copyright (C) 2015-2020 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -45,6 +45,11 @@ IniFileReader::load(const std::string &_path) {
trim(line);
+ // Handle comments
+ std::size_t comment = line.find(';');
+ if (comment == 0)
+ continue;
+
std::size_t start = line.find('[');
if (start == 0) {
std::size_t end = line.find(']');