summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallAndroidMKGenerator.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 17:27:35 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 17:27:35 (GMT)
commitc58c739da7287a1cb33558f4e121ecdb23cfadd9 (patch)
tree02cfdfecefc55588b853e4b7af30d46cb7a611d3 /Source/cmExportInstallAndroidMKGenerator.cxx
parent6b90e2850c1bd5df0aab0f1a93ea12f21bb9213f (diff)
downloadCMake-c58c739da7287a1cb33558f4e121ecdb23cfadd9.zip
CMake-c58c739da7287a1cb33558f4e121ecdb23cfadd9.tar.gz
CMake-c58c739da7287a1cb33558f4e121ecdb23cfadd9.tar.bz2
Use the empty method to check for emptiness
Diffstat (limited to 'Source/cmExportInstallAndroidMKGenerator.cxx')
-rw-r--r--Source/cmExportInstallAndroidMKGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportInstallAndroidMKGenerator.cxx b/Source/cmExportInstallAndroidMKGenerator.cxx
index f9f5f3a..2069785 100644
--- a/Source/cmExportInstallAndroidMKGenerator.cxx
+++ b/Source/cmExportInstallAndroidMKGenerator.cxx
@@ -26,7 +26,7 @@ void cmExportInstallAndroidMKGenerator::GenerateImportHeaderCode(
std::string installDir = this->IEGen->GetDestination();
os << "LOCAL_PATH := $(call my-dir)\n";
size_t numDotDot = cmSystemTools::CountChar(installDir.c_str(), '/');
- numDotDot += (installDir.size() > 0) ? 1 : 0;
+ numDotDot += installDir.empty() ? 0 : 1;
std::string path;
for (size_t n = 0; n < numDotDot; n++) {
path += "/..";