Commit 1554471b authored by Frederik Gladhorn's avatar Frederik Gladhorn

Trvial type warning fixes

parent 2979b6d0
......@@ -130,12 +130,12 @@ XRandR::~XRandR()
QString XRandR::name() const
{
return QString("XRandR");
return QStringLiteral("XRandR");
}
QString XRandR::serviceName() const
{
return QLatin1Literal("org.kde.KScreen.Backend.XRandR");
return QStringLiteral("org.kde.KScreen.Backend.XRandR");
}
......
......@@ -34,7 +34,7 @@ XRandROutput::XRandROutput(xcb_randr_output_t id, XRandRConfig *config)
, m_config(config)
, m_id(id)
, m_type(KScreen::Output::Unknown)
, m_primary(0)
, m_primary(false)
, m_crtc(nullptr)
{
init();
......@@ -89,7 +89,7 @@ XRandRMode* XRandROutput::currentMode() const
if (!m_crtc) {
return nullptr;
}
int modeId = m_crtc->mode();
unsigned int modeId = m_crtc->mode();
if (!m_modes.contains(modeId)) {
return nullptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment