configure_ui: Remove unnecessary usage of stoul
This commit is contained in:
parent
0eef4a6c94
commit
2d2c176f03
@ -4,6 +4,7 @@
|
|||||||
#include "yuzu/configuration/configure_ui.h"
|
#include "yuzu/configuration/configure_ui.h"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdlib>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -94,11 +95,7 @@ static void PopulateResolutionComboBox(QComboBox* screenshot_height, QWidget* pa
|
|||||||
}
|
}
|
||||||
|
|
||||||
static u32 ScreenshotDimensionToInt(const QString& height) {
|
static u32 ScreenshotDimensionToInt(const QString& height) {
|
||||||
try {
|
return std::strtoul(height.toUtf8(), nullptr, 0);
|
||||||
return std::stoi(height.toStdString());
|
|
||||||
} catch (std::invalid_argument&) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigureUi::ConfigureUi(Core::System& system_, QWidget* parent)
|
ConfigureUi::ConfigureUi(Core::System& system_, QWidget* parent)
|
||||||
|
Loading…
Reference in New Issue
Block a user