Tidy up SystemBootParameters constructors

This commit is contained in:
Silent 2020-09-12 22:14:50 +02:00
parent c47dceffb5
commit 2d90cfc07e
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1
2 changed files with 3 additions and 8 deletions

View file

@ -41,14 +41,9 @@ Log_SetChannel(System);
SystemBootParameters::SystemBootParameters() = default; SystemBootParameters::SystemBootParameters() = default;
SystemBootParameters::SystemBootParameters(std::string filename_) : filename(filename_) {} SystemBootParameters::SystemBootParameters(SystemBootParameters&& other) = default;
SystemBootParameters::SystemBootParameters(const SystemBootParameters& copy) SystemBootParameters::SystemBootParameters(std::string filename_) : filename(std::move(filename_)) {}
: 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() = default; SystemBootParameters::~SystemBootParameters() = default;

View file

@ -19,8 +19,8 @@ class CheatList;
struct SystemBootParameters struct SystemBootParameters
{ {
SystemBootParameters(); SystemBootParameters();
SystemBootParameters(SystemBootParameters&& other);
SystemBootParameters(std::string filename_); SystemBootParameters(std::string filename_);
SystemBootParameters(const SystemBootParameters& copy);
~SystemBootParameters(); ~SystemBootParameters();
std::string filename; std::string filename;