some code cleanup

This commit is contained in:
Volker Fischer 2020-04-19 12:23:25 +02:00
parent 6f962aae4f
commit 65583e3451
2 changed files with 2 additions and 14 deletions

View File

@ -562,6 +562,7 @@ void CServerDlg::UpdateGUIDependencies()
default: default:
break; break;
} }
lblRegSvrStatus->setText ( strStatus ); lblRegSvrStatus->setText ( strStatus );
} }

View File

@ -610,7 +610,7 @@ inline QString svrRegStatusToString ( ESvrRegStatus eSvrRegStatus )
return "Central Server full"; return "Central Server full";
} }
return QString("Unknown value ").append( eSvrRegStatus ); return QString ( "Unknown value " ).append ( eSvrRegStatus );
} }
@ -622,19 +622,6 @@ enum ESvrRegResult
SRR_CENTRAL_SVR_FULL = 1 SRR_CENTRAL_SVR_FULL = 1
}; };
inline QString svrRegResultToString ( ESvrRegResult eSvrRegResult )
{
switch ( eSvrRegResult )
{
case SRR_REGISTERED:
return "Registered";
case SRR_CENTRAL_SVR_FULL:
return "Central Server full";
}
return QString("Unknown value ").append( eSvrRegResult );
}
// Skill level enum ------------------------------------------------------------ // Skill level enum ------------------------------------------------------------
enum ESkillLevel enum ESkillLevel