diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-20 01:12:00 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-11-21 19:53:15 (GMT) |
commit | 4fe963f656c48b1f2fd0b4a2f427bb376f619c37 (patch) | |
tree | f04d63d59976dfa868873de1646664f57f59e2e2 /Source/cmCTest.cxx | |
parent | 7d4b2b2ef36c73c36eefd464fbb17bf34ebdb5fe (diff) | |
download | CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.zip CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.tar.gz CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.tar.bz2 |
Use new cmHasLiteralPrefix function
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index bfabc9f..125a3bf 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1131,11 +1131,11 @@ int cmCTest::GetTestModelFromString(const char* str) return cmCTest::EXPERIMENTAL; } std::string rstr = cmSystemTools::LowerCase(str); - if ( strncmp(rstr.c_str(), "cont", 4) == 0 ) + if ( cmHasLiteralPrefix(rstr.c_str(), "cont") ) { return cmCTest::CONTINUOUS; } - if ( strncmp(rstr.c_str(), "nigh", 4) == 0 ) + if ( cmHasLiteralPrefix(rstr.c_str(), "nigh") ) { return cmCTest::NIGHTLY; } |