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++) {
|
||||
ImGui::PushID(int(i));
|
||||
DCSResult result;
|
||||
result = drawCustomStyle(_currentMass->globalStyles()[i]);
|
||||
auto result = drawCustomStyle(_currentMass->globalStyles()[i]);
|
||||
switch(result) {
|
||||
case DCS_ResetStyle:
|
||||
_currentMass->getGlobalStyles();
|
||||
|
|
|
@ -349,8 +349,7 @@ Application::drawCustomArmourStyles() {
|
|||
|
||||
for(std::uint32_t i = 0; i < _currentMass->armourCustomStyles().size(); i++) {
|
||||
ImGui::PushID(int(i));
|
||||
DCSResult result;
|
||||
result = drawCustomStyle(_currentMass->armourCustomStyles()[i]);
|
||||
auto result = drawCustomStyle(_currentMass->armourCustomStyles()[i]);
|
||||
switch(result) {
|
||||
case DCS_ResetStyle:
|
||||
_currentMass->getArmourCustomStyles();
|
||||
|
|
|
@ -268,8 +268,7 @@ Application::drawCustomFrameStyles() {
|
|||
|
||||
for(std::uint32_t i = 0; i < _currentMass->frameCustomStyles().size(); i++) {
|
||||
ImGui::PushID(int(i));
|
||||
DCSResult result;
|
||||
result = drawCustomStyle(_currentMass->frameCustomStyles()[i]);
|
||||
auto result = drawCustomStyle(_currentMass->frameCustomStyles()[i]);
|
||||
switch(result) {
|
||||
case DCS_ResetStyle:
|
||||
_currentMass->getFrameCustomStyles();
|
||||
|
|
Loading…
Reference in a new issue