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/CTest/cmCTestGIT.cxx | |
parent | 7d4b2b2ef36c73c36eefd464fbb17bf34ebdb5fe (diff) | |
download | CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.zip CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.tar.gz CMake-4fe963f656c48b1f2fd0b4a2f427bb376f619c37.tar.bz2 |
Use new cmHasLiteralPrefix function
Diffstat (limited to 'Source/CTest/cmCTestGIT.cxx')
-rw-r--r-- | Source/CTest/cmCTestGIT.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestGIT.cxx b/Source/CTest/cmCTestGIT.cxx index 5b34491..725f613 100644 --- a/Source/CTest/cmCTestGIT.cxx +++ b/Source/CTest/cmCTestGIT.cxx @@ -536,11 +536,11 @@ private: void DoHeaderLine() { // Look for header fields that we need. - if(strncmp(this->Line.c_str(), "commit ", 7) == 0) + if(cmHasLiteralPrefix(this->Line.c_str(), "commit ")) { this->Rev.Rev = this->Line.c_str()+7; } - else if(strncmp(this->Line.c_str(), "author ", 7) == 0) + else if(cmHasLiteralPrefix(this->Line.c_str(), "author ")) { Person author; this->ParsePerson(this->Line.c_str()+7, author); @@ -548,7 +548,7 @@ private: this->Rev.EMail = author.EMail; this->Rev.Date = this->FormatDateTime(author); } - else if(strncmp(this->Line.c_str(), "committer ", 10) == 0) + else if(cmHasLiteralPrefix(this->Line.c_str(), "committer ")) { Person committer; this->ParsePerson(this->Line.c_str()+10, committer); |