Application: slightly improve code style.
This commit is contained in:
parent
e9fad7600b
commit
5cb04e7c20
3 changed files with 3 additions and 6 deletions
|
@ -180,8 +180,7 @@ Application::drawGlobalStyles() {
|
||||||
|
|
||||||
for(std::uint32_t i = 0; i < _currentMass->globalStyles().size(); i++) {
|
for(std::uint32_t i = 0; i < _currentMass->globalStyles().size(); i++) {
|
||||||
ImGui::PushID(int(i));
|
ImGui::PushID(int(i));
|
||||||
DCSResult result;
|
auto result = drawCustomStyle(_currentMass->globalStyles()[i]);
|
||||||
result = drawCustomStyle(_currentMass->globalStyles()[i]);
|
|
||||||
switch(result) {
|
switch(result) {
|
||||||
case DCS_ResetStyle:
|
case DCS_ResetStyle:
|
||||||
_currentMass->getGlobalStyles();
|
_currentMass->getGlobalStyles();
|
||||||
|
|
|
@ -349,8 +349,7 @@ Application::drawCustomArmourStyles() {
|
||||||
|
|
||||||
for(std::uint32_t i = 0; i < _currentMass->armourCustomStyles().size(); i++) {
|
for(std::uint32_t i = 0; i < _currentMass->armourCustomStyles().size(); i++) {
|
||||||
ImGui::PushID(int(i));
|
ImGui::PushID(int(i));
|
||||||
DCSResult result;
|
auto result = drawCustomStyle(_currentMass->armourCustomStyles()[i]);
|
||||||
result = drawCustomStyle(_currentMass->armourCustomStyles()[i]);
|
|
||||||
switch(result) {
|
switch(result) {
|
||||||
case DCS_ResetStyle:
|
case DCS_ResetStyle:
|
||||||
_currentMass->getArmourCustomStyles();
|
_currentMass->getArmourCustomStyles();
|
||||||
|
|
|
@ -268,8 +268,7 @@ Application::drawCustomFrameStyles() {
|
||||||
|
|
||||||
for(std::uint32_t i = 0; i < _currentMass->frameCustomStyles().size(); i++) {
|
for(std::uint32_t i = 0; i < _currentMass->frameCustomStyles().size(); i++) {
|
||||||
ImGui::PushID(int(i));
|
ImGui::PushID(int(i));
|
||||||
DCSResult result;
|
auto result = drawCustomStyle(_currentMass->frameCustomStyles()[i]);
|
||||||
result = drawCustomStyle(_currentMass->frameCustomStyles()[i]);
|
|
||||||
switch(result) {
|
switch(result) {
|
||||||
case DCS_ResetStyle:
|
case DCS_ResetStyle:
|
||||||
_currentMass->getFrameCustomStyles();
|
_currentMass->getFrameCustomStyles();
|
||||||
|
|
Loading…
Reference in a new issue