c_str() on _filename.

Originally committed to SVN as r2147.
This commit is contained in:
Amar Takhar 2008-03-25 23:51:54 +00:00
parent 91c641789f
commit 3cd825e98b
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ void DummyVideoProvider::Create(double _fps, int frames, int _width, int _height
// Parsing constructor // Parsing constructor
DummyVideoProvider::DummyVideoProvider(Aegisub::String _filename, double _fps) DummyVideoProvider::DummyVideoProvider(Aegisub::String _filename, double _fps)
{ {
wxString filename = _filename; wxString filename = _filename.c_str();
wxString params; wxString params;
if (!filename.StartsWith(_T("?dummy:"), &params)) { if (!filename.StartsWith(_T("?dummy:"), &params)) {
throw _T("Attempted creating dummy video provider with non-dummy filename"); throw _T("Attempted creating dummy video provider with non-dummy filename");