-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Use wstring_view for constants instead of wstring #925
Conversation
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.
Thanks for doing this!
Hello @DHowett-MSFT! Because this pull request has the Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 8 hours, a condition that is not currently met. No worries though, I will be back when the time is right! 😉 p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me and give me an instruction to get started! Learn more here. |
@msftbot make sure @adiviness signs off |
Hello @DHowett-MSFT! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
Ah, did I jump the gun? I didn't realize this was a draft. 😄 |
I un-drafted the PR :) thanks for a quick review, glad to contribute! |
* Initial code check in for background images * Cleaning up whitespace * Whitespace cleanup * Added/fixed comments * Fixing tabs * Reverting erroneous file add * Removing custom enum for image stretching mode and using Windows::UI::Xaml::Media::Stretch instead. * Removing now-superfluous static_cast when setting stretch mode. * Updating code to use wstring_view (per #925) * One last set of wstring -> wstring_view changes * Split off brush-intialization function from TermControl::_BackgroundColorChanged and added code to prevent flicker on resetting acrylic or image backgrounds.
Instead of creating const static wstring objects which call malloc in the constructor, use wstring_view instead which just wraps the constant.
Summary of the Pull Request
Simple code refactoring.
References
PR Checklist