mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Const correctness, override keyword, a bunch of stuff..
This commit is contained in:
@@ -10,20 +10,20 @@ enum class VideoStandard {
|
||||
NO_CHANGE
|
||||
};
|
||||
|
||||
inline VideoStandard parseVideoStandard(QString videoStandard)
|
||||
inline VideoStandard parseVideoStandard(const QString& videoStandard)
|
||||
{
|
||||
// convert to lower case
|
||||
videoStandard = videoStandard.toLower();
|
||||
QString standard = videoStandard.toLower();
|
||||
|
||||
if (videoStandard == "pal")
|
||||
if (standard == "pal")
|
||||
{
|
||||
return VideoStandard::PAL;
|
||||
}
|
||||
else if (videoStandard == "ntsc")
|
||||
else if (standard == "ntsc")
|
||||
{
|
||||
return VideoStandard::NTSC;
|
||||
}
|
||||
else if (videoStandard == "secam")
|
||||
else if (standard == "secam")
|
||||
{
|
||||
return VideoStandard::SECAM;
|
||||
}
|
||||
|
Reference in New Issue
Block a user