fix: optimization: PVS-Studio warning V836
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user