-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Try to get the client name during DefTerm handoff #19014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
try | ||
{ | ||
auto processImageName{ wil::QueryFullProcessImageNameW<std::wstring>(_piClient.hProcess) }; | ||
_clientName = std::filesystem::path{ processImageName }.filename().wstring(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a std::move here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(which thing will we move? i guess we could move all of it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
presumably path{ move(image) }
; everything else is an rvalue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah exactly.
(cherry picked from commit cf95460) Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgbO1vA Service-Version: 1.22
(cherry picked from commit cf95460) Service-Card-Id: PVTI_lADOAF3p4s4AxadtzgbO1u8 Service-Version: 1.23
No description provided.