summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorPavel Solodovnikov <hellyeahdominate@gmail.com>2017-09-15 22:42:59 (GMT)
committerPavel Solodovnikov <hellyeahdominate@gmail.com>2017-09-21 08:23:19 (GMT)
commit37d9387be37b5ad51b518d5df467b64e88f73350 (patch)
tree91d6c8ff19c59b296bef0166b8a4da6ff6180190 /Source/cmVisualStudio10TargetGenerator.cxx
parent1cf94375174e7b939148a3ec7e3ae004d511719e (diff)
downloadCMake-37d9387be37b5ad51b518d5df467b64e88f73350.zip
CMake-37d9387be37b5ad51b518d5df467b64e88f73350.tar.gz
CMake-37d9387be37b5ad51b518d5df467b64e88f73350.tar.bz2
Replace empty-string comparisons with checking against `empty()`.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 99b9bce..8dce028 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -407,7 +407,7 @@ void cmVisualStudio10TargetGenerator::Generate()
continue;
std::string globalKey = keyIt->substr(strlen(prefix));
// Skip invalid or separately-handled properties.
- if (globalKey == "" || globalKey == "PROJECT_TYPES" ||
+ if (globalKey.empty() || globalKey == "PROJECT_TYPES" ||
globalKey == "ROOTNAMESPACE" || globalKey == "KEYWORD") {
continue;
}
@@ -614,7 +614,7 @@ void cmVisualStudio10TargetGenerator::WriteDotNetReferences()
++i) {
if (i->first.find("VS_DOTNET_REFERENCE_") == 0) {
std::string name = i->first.substr(20);
- if (name != "") {
+ if (!name.empty()) {
std::string path = i->second.GetValue();
if (!cmsys::SystemTools::FileIsFullPath(path)) {
path = std::string(this->GeneratorTarget->Target->GetMakefile()