Common: Cleanup some Path constructions.

This commit is contained in:
Unknown W. Brackets 2021-05-14 22:48:04 -07:00
parent 2a9170a2ea
commit d376e67f87
13 changed files with 21 additions and 22 deletions

View file

@ -159,7 +159,7 @@ void AsyncImageFileView::Draw(UIContext &dc) {
class ScreenshotViewScreen : public PopupScreen {
public:
ScreenshotViewScreen(Path filename, std::string title, int slot, std::shared_ptr<I18NCategory> i18n)
ScreenshotViewScreen(const Path &filename, std::string title, int slot, std::shared_ptr<I18NCategory> i18n)
: PopupScreen(title, i18n->T("Load State"), "Back"), filename_(filename), slot_(slot) {} // PopupScreen will translate Back on its own
int GetSlot() const {