diff --git a/src/core/system.cpp b/src/core/system.cpp index 50faa1867..b861fada4 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -41,14 +41,9 @@ Log_SetChannel(System); SystemBootParameters::SystemBootParameters() = default; -SystemBootParameters::SystemBootParameters(std::string filename_) : filename(filename_) {} +SystemBootParameters::SystemBootParameters(SystemBootParameters&& other) = default; -SystemBootParameters::SystemBootParameters(const SystemBootParameters& copy) - : filename(copy.filename), override_fast_boot(copy.override_fast_boot), override_fullscreen(copy.override_fullscreen) -{ - // only exists for qt, we can't copy the state stream - Assert(!copy.state_stream); -} +SystemBootParameters::SystemBootParameters(std::string filename_) : filename(std::move(filename_)) {} SystemBootParameters::~SystemBootParameters() = default; diff --git a/src/core/system.h b/src/core/system.h index 938bee0d7..6b0085099 100644 --- a/src/core/system.h +++ b/src/core/system.h @@ -19,8 +19,8 @@ class CheatList; struct SystemBootParameters { SystemBootParameters(); + SystemBootParameters(SystemBootParameters&& other); SystemBootParameters(std::string filename_); - SystemBootParameters(const SystemBootParameters& copy); ~SystemBootParameters(); std::string filename;