diff options
author | Brad King <brad.king@kitware.com> | 2020-05-13 11:08:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-13 11:08:22 (GMT) |
commit | 833ae0a63beb790ee606221ee5ce178d08b441ae (patch) | |
tree | 8470bdfc58340338d12ba539a47270fcaf0e2b61 /Source/kwsys/testCommandLineArguments1.cxx | |
parent | ad11526dc477f988d157eb0e78327addc8e9aa5f (diff) | |
parent | 3674f6a47000db2b519a44062b8ce46db4f12691 (diff) | |
download | CMake-833ae0a63beb790ee606221ee5ce178d08b441ae.zip CMake-833ae0a63beb790ee606221ee5ce178d08b441ae.tar.gz CMake-833ae0a63beb790ee606221ee5ce178d08b441ae.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2020-05-13 (d4da6980)
Diffstat (limited to 'Source/kwsys/testCommandLineArguments1.cxx')
-rw-r--r-- | Source/kwsys/testCommandLineArguments1.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/kwsys/testCommandLineArguments1.cxx b/Source/kwsys/testCommandLineArguments1.cxx index cbc3002..2f6b735 100644 --- a/Source/kwsys/testCommandLineArguments1.cxx +++ b/Source/kwsys/testCommandLineArguments1.cxx @@ -12,8 +12,8 @@ #include <iostream> #include <vector> -#include <assert.h> /* assert */ -#include <string.h> /* strcmp */ +#include <cassert> /* assert */ +#include <cstring> /* strcmp */ int testCommandLineArguments1(int argc, char* argv[]) { @@ -51,9 +51,7 @@ int testCommandLineArguments1(int argc, char* argv[]) std::cout << "Value of N: " << n << std::endl; std::cout << "Value of M: " << m << std::endl; std::cout << "Value of P: " << p << std::endl; - if (m) { - delete[] m; - } + delete[] m; char** newArgv = nullptr; int newArgc = 0; |