aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg_Dependencies.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-08-29 16:20:21 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-08-29 16:20:46 -0700
commit5337adf1078f27c993f01662b7dadb8da2801356 (patch)
tree84d6dc9d137a03fb17956f37ed47578cb748b118 /toolsrc/src/vcpkg_Dependencies.cpp
parentd1d01075adf025690eeceffc2fc41f9a1a27982b (diff)
downloadvcpkg-5337adf1078f27c993f01662b7dadb8da2801356.tar.gz
vcpkg-5337adf1078f27c993f01662b7dadb8da2801356.zip
Remove Strings::is_empty(). Use std::string.empty()
Diffstat (limited to 'toolsrc/src/vcpkg_Dependencies.cpp')
-rw-r--r--toolsrc/src/vcpkg_Dependencies.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg_Dependencies.cpp b/toolsrc/src/vcpkg_Dependencies.cpp
index 4d0c3c928..1a0f0a6ed 100644
--- a/toolsrc/src/vcpkg_Dependencies.cpp
+++ b/toolsrc/src/vcpkg_Dependencies.cpp
@@ -443,7 +443,7 @@ namespace vcpkg::Dependencies
MarkPlusResult mark_plus(const std::string& feature, Cluster& cluster, ClusterGraph& graph, GraphPlan& graph_plan)
{
- if (feature == "")
+ if (feature.empty())
{
// Indicates that core was not specified in the reference
return mark_plus("core", cluster, graph, graph_plan);
@@ -551,7 +551,7 @@ namespace vcpkg::Dependencies
auto& status_paragraph_feature = status_paragraph->package.feature;
// In this case, empty string indicates the "core" paragraph for a package.
- if (status_paragraph_feature == "")
+ if (status_paragraph_feature.empty())
{
cluster.original_features.insert("core");
}
@@ -573,7 +573,7 @@ namespace vcpkg::Dependencies
auto& dep_cluster = graph.get(dependency.spec());
auto depends_name = dependency.feature();
- if (depends_name == "") depends_name = "core";
+ if (depends_name.empty()) depends_name = "core";
auto& target_node = dep_cluster.edges[depends_name];
target_node.remove_edges.emplace_back(FeatureSpec{spec, status_paragraph_feature});