diff --git a/.vscode/settings.json b/.vscode/settings.json index b04b0af..e2e9213 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -65,6 +65,9 @@ "typeinfo": "cpp", "unordered_map": "cpp", "utility": "cpp", - "vector": "cpp" + "vector": "cpp", + "thread": "cpp", + "numeric": "cpp", + "stack": "cpp" } } \ No newline at end of file diff --git a/clib/csvparser.cpp b/clib/csvparser.cpp index dc46cb3..4cdb826 100644 --- a/clib/csvparser.cpp +++ b/clib/csvparser.cpp @@ -20,10 +20,10 @@ MlValue CsvParser::parseCSV(const std::string &csvSource) { std::string field; std::vector parsed_data; - parsed_data.reserve(128); + parsed_data.reserve(128); // TODO introduce constant here std::vector line; - line.reserve(32); + line.reserve(32); // TODO introduce constant here std::string::const_iterator aChar = csvSource.begin(); while (aChar != csvSource.end()) { diff --git a/ml_date.h b/ml_date.h index 09a3e46..5353d23 100644 --- a/ml_date.h +++ b/ml_date.h @@ -1,7 +1,6 @@ #pragma once -#include "ml.h" #include "clib/date.h" #include @@ -10,7 +9,6 @@ long now(); -// TODO temporary solution before format will be implemented std::string date_to_string(const long datetime, const std::string format); long string_to_date(const std::string &datestr, const std::string &format);