diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-15 22:39:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:25 (GMT) |
commit | 5f69314ea65ebd0de23484e7c91bd12a8bf861f6 (patch) | |
tree | d50bbf578696dfa13e36dbf684de70a2a0c913d8 /Source/cmDocumentationFormatter.cxx | |
parent | fd0c036c0c3e5e6be685e64caecdcbad4b3e744c (diff) | |
download | CMake-5f69314ea65ebd0de23484e7c91bd12a8bf861f6.zip CMake-5f69314ea65ebd0de23484e7c91bd12a8bf861f6.tar.gz CMake-5f69314ea65ebd0de23484e7c91bd12a8bf861f6.tar.bz2 |
Replace foo.length() pattern with !foo.empty().
Diffstat (limited to 'Source/cmDocumentationFormatter.cxx')
-rw-r--r-- | Source/cmDocumentationFormatter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDocumentationFormatter.cxx b/Source/cmDocumentationFormatter.cxx index adf29b1..4de59c0 100644 --- a/Source/cmDocumentationFormatter.cxx +++ b/Source/cmDocumentationFormatter.cxx @@ -46,7 +46,7 @@ void cmDocumentationFormatter::PrintFormatted(std::ostream& os, preformatted.append(1, '\n'); } } - if(preformatted.length()) + if(!preformatted.empty()) { this->PrintPreformatted(os, preformatted.c_str()); } @@ -62,7 +62,7 @@ void cmDocumentationFormatter::PrintFormatted(std::ostream& os, ++ptr; paragraph.append(1, '\n'); } - if(paragraph.length()) + if(!paragraph.empty()) { this->PrintParagraph(os, paragraph.c_str()); } |