mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
fix: optimization: PVS-Studio warning V836
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
bbf33e8e4d
commit
2cd6837da9
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ static void _readPanel(UiXmlReader& reader, const xml::xmlelement& element, Pane
|
||||||
panel.setMaxLength(element->attr("max-length").asInt());
|
panel.setMaxLength(element->attr("max-length").asInt());
|
||||||
}
|
}
|
||||||
if (element->has("orientation")) {
|
if (element->has("orientation")) {
|
||||||
auto oname = element->attr("orientation").getText();
|
auto &oname = element->attr("orientation").getText();
|
||||||
if (oname == "horizontal") {
|
if (oname == "horizontal") {
|
||||||
panel.setOrientation(Orientation::horizontal);
|
panel.setOrientation(Orientation::horizontal);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue