STARK: Change to use reference for the filename in the FMVWidget

This commit is contained in:
Douglas Liu
2018-06-09 22:04:08 +08:00
parent 20d54d788f
commit c7bc7474c8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ FMVWidget::FMVWidget(Gfx::Driver *gfx, int fmvIndex) :
}
void FMVWidget::onClick() {
StarkUserInterface->requestFMVPlayback(Common::String(_filename));
StarkUserInterface->requestFMVPlayback(_filename);
}
bool FMVWidget::isMouseInside(const Common::Point &mousePos) const {
+1 -1
View File
@@ -100,7 +100,7 @@ private:
static const uint32 _textColorHovered = 0xFF961E1E;
static const uint32 _textColorDefault = 0xFF000000;
Common::String _filename;
const Common::String &_filename;
VisualText _title;
int _width;