summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 21:39:38 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 13:25:25 (GMT)
commitf09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e (patch)
tree6994c781c124755725d5ee2c6199d74744f2de57 /Source/cmDocumentation.cxx
parent86b5bdfa0874a0eb97d726fa9dc2f534e5a67c7e (diff)
downloadCMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.zip
CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.tar.gz
CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.tar.bz2
Replace 'foo.length() > 0' pattern with !foo.empty().
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index a268d12..f4e3a75 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -162,7 +162,7 @@ bool cmDocumentation::PrintRequestedDocumentation(std::ostream& os)
// given stream.
cmsys::ofstream* fout = 0;
std::ostream* s = &os;
- if(i->Filename.length() > 0)
+ if(!i->Filename.empty())
{
fout = new cmsys::ofstream(i->Filename.c_str(), std::ios::out);
if(fout)
@@ -877,7 +877,7 @@ bool cmDocumentation::PrintHelp(std::ostream& os)
//----------------------------------------------------------------------------
const char* cmDocumentation::GetNameString() const
{
- if(this->NameString.length() > 0)
+ if(!this->NameString.empty())
{
return this->NameString.c_str();
}