aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_portsdiff.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-08-31 18:33:52 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-08-31 18:33:52 -0700
commitf0d5d94348a95c502688816c3ab360cd087aca95 (patch)
treefcc54c79d448295c285fad201bfb823b4b6099ae /toolsrc/src/commands_portsdiff.cpp
parent61e5b6980b41bb73daaac3c3e1e15f4b04f960d9 (diff)
downloadvcpkg-f0d5d94348a95c502688816c3ab360cd087aca95.tar.gz
vcpkg-f0d5d94348a95c502688816c3ab360cd087aca95.zip
[vcpkg portsdiff] Add missing const, remove unused #include
Diffstat (limited to 'toolsrc/src/commands_portsdiff.cpp')
-rw-r--r--toolsrc/src/commands_portsdiff.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/toolsrc/src/commands_portsdiff.cpp b/toolsrc/src/commands_portsdiff.cpp
index 09299cb09..32bc3de3c 100644
--- a/toolsrc/src/commands_portsdiff.cpp
+++ b/toolsrc/src/commands_portsdiff.cpp
@@ -2,7 +2,6 @@
#include "Paragraphs.h"
#include "SortedVector.h"
-#include "SourceParagraph.h"
#include "vcpkg_Commands.h"
#include "vcpkg_Maps.h"
#include "vcpkg_System.h"
@@ -139,8 +138,8 @@ namespace vcpkg::Commands::PortsDiff
read_ports_from_commit(paths, git_commit_id_for_previous_snapshot);
// Already sorted, so set_difference can work on std::vector too
- std::vector<std::string> current_ports = Maps::extract_keys(current_names_and_versions);
- std::vector<std::string> previous_ports = Maps::extract_keys(previous_names_and_versions);
+ const std::vector<std::string> current_ports = Maps::extract_keys(current_names_and_versions);
+ const std::vector<std::string> previous_ports = Maps::extract_keys(previous_names_and_versions);
const SetElementPresence<std::string> setp =
SetElementPresence<std::string>::create(current_ports, previous_ports);