Skip to content

Commit

Permalink
Do not use comma operator for variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed May 31, 2021
1 parent f9b6f3a commit 9d1c135
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ int main(void)
//
// User defined 1d, 2d and 3d point sets
//
std::vector<double> x, y, y2, dy, z;
std::vector<double> x;
std::vector<double> y;
std::vector<double> y2;
std::vector<double> dy;
std::vector<double> z;

for (unsigned int i = 0; i < NPOINTS; ++i) // fill double arrays x, y, z
{
Expand Down

0 comments on commit 9d1c135

Please sign in to comment.