mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +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 "components/FlexboxComponent.h"
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
#include "Settings.h"
|
#include "Settings.h"
|
||||||
#include "ThemeData.h"
|
#include "ThemeData.h"
|
||||||
|
|
@ -31,13 +32,13 @@ FlexboxComponent::FlexboxComponent(Window* window)
|
||||||
// Getters/Setters for rendering options.
|
// Getters/Setters for rendering options.
|
||||||
void FlexboxComponent::setDirection(std::string value)
|
void FlexboxComponent::setDirection(std::string value)
|
||||||
{
|
{
|
||||||
mDirection = value;
|
mDirection = std::move(value);
|
||||||
mLayoutValid = false;
|
mLayoutValid = false;
|
||||||
}
|
}
|
||||||
std::string FlexboxComponent::getDirection() { return mDirection; }
|
std::string FlexboxComponent::getDirection() { return mDirection; }
|
||||||
void FlexboxComponent::setAlign(std::string value)
|
void FlexboxComponent::setAlign(std::string value)
|
||||||
{
|
{
|
||||||
mAlign = value;
|
mAlign = std::move(value);
|
||||||
mLayoutValid = false;
|
mLayoutValid = false;
|
||||||
}
|
}
|
||||||
std::string FlexboxComponent::getAlign() { return mAlign; }
|
std::string FlexboxComponent::getAlign() { return mAlign; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue