diff --git a/src/QGC.h b/src/QGC.h index 1c394adf6049b38046bdcb4a5f57aa6cb6933741..24fcab9c8eb3d2686dcc03f0d1253f1b674d0c02 100644 --- a/src/QGC.h +++ b/src/QGC.h @@ -102,27 +102,9 @@ const static int MAX_FLIGHT_TIME = 60 * 60 * 24 * 21; class SLEEP : public QThread { public: - /** - * @brief Set a thread to sleep for seconds - * @param s time in seconds to sleep - **/ - static void sleep(unsigned long s) { - QThread::sleep(s); - } - /** - * @brief Set a thread to sleep for milliseconds - * @param ms time in milliseconds to sleep - **/ - static void msleep(unsigned long ms) { - QThread::msleep(ms); - } - /** - * @brief Set a thread to sleep for microseconds - * @param us time in microseconds to sleep - **/ - static void usleep(unsigned long us) { - QThread::usleep(us); - } + using QThread::sleep; + using QThread::msleep; + using QThread::usleep; }; quint32 crc32(const quint8 *src, unsigned len, unsigned state);