From a90575514adda68f7a742db0d27fc8953363e8bd Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 25 Jun 2010 10:04:10 -0400 Subject: [PATCH] int main() is a standard main() prototype, and makes for cleaner examples --- doc/examples/QuickStart_example.cpp | 2 +- doc/examples/QuickStart_example2_dynamic.cpp | 2 +- doc/examples/QuickStart_example2_fixed.cpp | 2 +- doc/examples/Tutorial_PartialLU_solve.cpp | 2 +- doc/examples/Tutorial_simple_example_dynamic_size.cpp | 2 +- doc/examples/Tutorial_simple_example_fixed_size.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/examples/QuickStart_example.cpp b/doc/examples/QuickStart_example.cpp index f4ab2fbe0..7238c0c43 100644 --- a/doc/examples/QuickStart_example.cpp +++ b/doc/examples/QuickStart_example.cpp @@ -3,7 +3,7 @@ using Eigen::MatrixXd; -int main(int, char *[]) +int main() { MatrixXd m(2,2); m(0,0) = 3; diff --git a/doc/examples/QuickStart_example2_dynamic.cpp b/doc/examples/QuickStart_example2_dynamic.cpp index b46ecef99..ccaba9c82 100644 --- a/doc/examples/QuickStart_example2_dynamic.cpp +++ b/doc/examples/QuickStart_example2_dynamic.cpp @@ -4,7 +4,7 @@ using Eigen::MatrixXd; using Eigen::VectorXd; -int main(int, char *[]) +int main() { MatrixXd m(3,3); for (int row = 0; row < 3; ++row) diff --git a/doc/examples/QuickStart_example2_fixed.cpp b/doc/examples/QuickStart_example2_fixed.cpp index 9fcddcdd6..c30f47734 100644 --- a/doc/examples/QuickStart_example2_fixed.cpp +++ b/doc/examples/QuickStart_example2_fixed.cpp @@ -4,7 +4,7 @@ using Eigen::Matrix3d; using Eigen::Vector3d; -int main(int, char *[]) +int main() { Matrix3d m; for (int row = 0; row < 3; ++row) diff --git a/doc/examples/Tutorial_PartialLU_solve.cpp b/doc/examples/Tutorial_PartialLU_solve.cpp index 917836f0e..a5608792f 100644 --- a/doc/examples/Tutorial_PartialLU_solve.cpp +++ b/doc/examples/Tutorial_PartialLU_solve.cpp @@ -5,7 +5,7 @@ using namespace std; using namespace Eigen; -int main(int, char *[]) +int main() { Matrix3f A; Vector3f b; diff --git a/doc/examples/Tutorial_simple_example_dynamic_size.cpp b/doc/examples/Tutorial_simple_example_dynamic_size.cpp index d780e7326..0f0280e0e 100644 --- a/doc/examples/Tutorial_simple_example_dynamic_size.cpp +++ b/doc/examples/Tutorial_simple_example_dynamic_size.cpp @@ -3,7 +3,7 @@ using namespace Eigen; -int main(int, char *[]) +int main() { for (int size=1; size<=4; ++size) { diff --git a/doc/examples/Tutorial_simple_example_fixed_size.cpp b/doc/examples/Tutorial_simple_example_fixed_size.cpp index a5c856732..bc4f95d79 100644 --- a/doc/examples/Tutorial_simple_example_fixed_size.cpp +++ b/doc/examples/Tutorial_simple_example_fixed_size.cpp @@ -3,7 +3,7 @@ using namespace Eigen; -int main(int, char *[]) +int main() { Matrix3f m3; m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9;