aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_cache.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-08-28 17:16:38 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-08-28 17:16:38 -0700
commit4a43e3e7f954cb79a71ab05dde6b5345d011db83 (patch)
treedbc464545d323615365105259782cc0d23bd410e /toolsrc/src/commands_cache.cpp
parent269c6b4d55192492d8ad254723b5883f13794314 (diff)
downloadvcpkg-4a43e3e7f954cb79a71ab05dde6b5345d011db83.tar.gz
vcpkg-4a43e3e7f954cb79a71ab05dde6b5345d011db83.zip
Use const
Diffstat (limited to 'toolsrc/src/commands_cache.cpp')
-rw-r--r--toolsrc/src/commands_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/commands_cache.cpp b/toolsrc/src/commands_cache.cpp
index 75de78461..fa0c62ee4 100644
--- a/toolsrc/src/commands_cache.cpp
+++ b/toolsrc/src/commands_cache.cpp
@@ -15,7 +15,7 @@ namespace vcpkg::Commands::Cache
{
const Expected<std::unordered_map<std::string, std::string>> pghs =
Paragraphs::get_single_paragraph(paths.get_filesystem(), path / "CONTROL");
- if (auto p = pghs.get())
+ if (const auto p = pghs.get())
{
const BinaryParagraph binary_paragraph = BinaryParagraph(*p);
output.push_back(binary_paragraph);