diff --git a/hgx11.cpp b/hgx11.cpp index c205751..d0101aa 100644 --- a/hgx11.cpp +++ b/hgx11.cpp @@ -14,7 +14,7 @@ hgx11::hgx11(QHash opts) while (i.hasNext()) { i.next(); if ((i.key() == "a" || i.key() == "address") && !(i.value().isNull() && i.value().isEmpty())) { - addr = i.value(); + addr = i.value(); } else if ((i.key() == "p" || i.key() == "port") && i.value().toUShort()) { port = i.value().toUShort(); } else if ((i.key() == "s" || i.key() == "scale") && i.value().toUShort()) { @@ -82,7 +82,7 @@ QString hgx11::_parseColorArr(QString value, bool isInt) if (values.size() != 3) { return ""; } - QString retVal = "["; + value = "["; for (int i = 0; i < 3; i++) { if (isInt && (values.at(i).toInt() < 0 || values.at(i).toInt() > 255)) { return ""; @@ -90,12 +90,12 @@ QString hgx11::_parseColorArr(QString value, bool isInt) if (!isInt && (values.at(i).toDouble() < 0.0 || values.at(i).toDouble() > 1.0)) { return ""; } - retVal.append(values.at(i)); - retVal.append(","); + value.append(values.at(i)); + value.append(","); } - retVal.chop(1); - retVal.append("]"); - return retVal; + value.chop(1); + value.append("]"); + return value; } // private slots diff --git a/hgx11.h b/hgx11.h index 119ae96..dddf3ec 100644 --- a/hgx11.h +++ b/hgx11.h @@ -23,8 +23,6 @@ private: QTimer *_timer_p; int _inactiveTime_m = 0; - QString _destWidth_m; - QString _destHeight_m; QString _parseColorArr(QString, bool); diff --git a/hgx11damage.h b/hgx11damage.h index a5ba021..faa897d 100644 --- a/hgx11damage.h +++ b/hgx11damage.h @@ -4,7 +4,6 @@ #include #include #include -#include class hgx11damage : public QThread { diff --git a/hgx11grab.h b/hgx11grab.h index 3c32909..7b52a0b 100644 --- a/hgx11grab.h +++ b/hgx11grab.h @@ -3,7 +3,6 @@ #include #include -#include #include #include #include diff --git a/hgx11net.h b/hgx11net.h index c866fd3..18e3ae6 100644 --- a/hgx11net.h +++ b/hgx11net.h @@ -2,10 +2,6 @@ #define HGX11NET_H #include -#include -#include -#include -#include class hgx11net : public QObject {