mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
STARK: Change to use reference for the filename in the FMVWidget
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user