aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_integrate.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-02-28 17:51:26 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-02-28 17:51:26 -0800
commitab0d61b77947591e62006a92633c1411bdefa6e5 (patch)
tree9ace04056389a21e709e2b7620ab6fe0337282d1 /toolsrc/src/commands_integrate.cpp
parent61254273ba9f4c88319326924a0f536a1f72a749 (diff)
downloadvcpkg-ab0d61b77947591e62006a92633c1411bdefa6e5.tar.gz
vcpkg-ab0d61b77947591e62006a92633c1411bdefa6e5.zip
Re-use variable instead of re-calling function returning it
Diffstat (limited to 'toolsrc/src/commands_integrate.cpp')
-rw-r--r--toolsrc/src/commands_integrate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/commands_integrate.cpp b/toolsrc/src/commands_integrate.cpp
index 94af19e96..595cf3914 100644
--- a/toolsrc/src/commands_integrate.cpp
+++ b/toolsrc/src/commands_integrate.cpp
@@ -227,14 +227,14 @@ namespace vcpkg::Commands::Integrate
static void integrate_remove()
{
- auto path = get_appdata_targets_path();
+ const fs::path path = get_appdata_targets_path();
if (!fs::exists(path))
{
System::println(System::color::success, "User-wide integration is not installed");
exit(EXIT_SUCCESS);
}
- const std::wstring cmd_line = Strings::wformat(LR"(DEL "%s")", get_appdata_targets_path().native());
+ const std::wstring cmd_line = Strings::wformat(LR"(DEL "%s")", path.native());
const int exit_code = System::cmd_execute(cmd_line);
if (exit_code)
{