Skip to content

Commit

Permalink
fix warnings (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryStk authored Nov 14, 2023
1 parent fa1fbcf commit 6c0ab98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plotly_maker/plotly_maker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ id="gd"></div>
)";

bool checkThatSizesAreTheSame(const std::vector<std::vector<double>> &values) {
unsigned int size = 0;
size_t size = 0;
if(!values.empty()) {
size = values[0].size();
};
Expand Down Expand Up @@ -64,14 +64,14 @@ bool createStringLineChartValues(const std::vector<double>& values,
}
str_values = R"(var trace = {
x: [)";
for (int i = 0; i < values.size(); ++i) {
for (size_t i = 0; i < values.size(); ++i) {
str_values.append(std::to_string(i));
if (i != values.size() - 1) {
str_values.append(",");
}
}
str_values.append("], y: [");
for (int j = 0; j < values.size(); ++j) {
for (size_t j = 0; j < values.size(); ++j) {
str_values.append(std::to_string(values[j]));
if (j != values.size() - 1) {
str_values.append(",");
Expand Down

0 comments on commit 6c0ab98

Please sign in to comment.