mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
move to avoid unnecessary copies.
This commit is contained in:
parent
91f1a0a47d
commit
33f0b01c55
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "components/FlexboxComponent.h"
|
||||
#include <numeric>
|
||||
#include <utility>
|
||||
|
||||
#include "Settings.h"
|
||||
#include "ThemeData.h"
|
||||
|
@ -31,13 +32,13 @@ FlexboxComponent::FlexboxComponent(Window* window)
|
|||
// Getters/Setters for rendering options.
|
||||
void FlexboxComponent::setDirection(std::string value)
|
||||
{
|
||||
mDirection = value;
|
||||
mDirection = std::move(value);
|
||||
mLayoutValid = false;
|
||||
}
|
||||
std::string FlexboxComponent::getDirection() { return mDirection; }
|
||||
void FlexboxComponent::setAlign(std::string value)
|
||||
{
|
||||
mAlign = value;
|
||||
mAlign = std::move(value);
|
||||
mLayoutValid = false;
|
||||
}
|
||||
std::string FlexboxComponent::getAlign() { return mAlign; }
|
||||
|
|
Loading…
Reference in a new issue