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:
@@ -12,16 +12,16 @@ enum class VideoMode
|
||||
VIDEO_3DTAB
|
||||
};
|
||||
|
||||
inline VideoMode parse3DMode(QString videoMode)
|
||||
inline VideoMode parse3DMode(const QString& videoMode)
|
||||
{
|
||||
// convert to upper case
|
||||
videoMode = videoMode.toUpper();
|
||||
const QString vm = videoMode.toUpper();
|
||||
|
||||
if (videoMode == "3DTAB")
|
||||
if (vm == "3DTAB")
|
||||
{
|
||||
return VideoMode::VIDEO_3DTAB;
|
||||
}
|
||||
else if (videoMode == "3DSBS")
|
||||
else if (vm == "3DSBS")
|
||||
{
|
||||
return VideoMode::VIDEO_3DSBS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user