Make WindowId::primary()
const
#6577
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Feature
A new feature, making something new possible
What problem does this solve or what need does it fill?
WindowId::primary()
can be made const, which would allow for using it in const contexts, such as having the primary window being a default value.What solution would you like?
Just change add
const
to it. Maybe there are other things that can be madeconst
at the same time.What alternative(s) have you considered?
It could also be changed to
WindowId::PRIMARY
.Additional context
I was writing something that uses
WindowId::primary()
for a default value. I didn't need it to beconst
here, but I just noticed it.The text was updated successfully, but these errors were encountered: