Commit aefcd1cc authored by dogmaphobic's avatar dogmaphobic

Build fix

parent 5b0e135e
...@@ -131,6 +131,14 @@ static QObject* mavManagerSingletonFactory(QQmlEngine*, QJSEngine*) ...@@ -131,6 +131,14 @@ static QObject* mavManagerSingletonFactory(QQmlEngine*, QJSEngine*)
return mavManager; return mavManager;
} }
#if defined(QGC_GST_STREAMING)
static void qgcputenv(const QString& key, const QString& root, const QString& path)
{
QString value = root + path;
qputenv(key.toStdString().c_str(), QByteArray(value.toStdString().c_str()));
}
#endif
/** /**
* @brief Constructor for the main application. * @brief Constructor for the main application.
* *
...@@ -141,12 +149,6 @@ static QObject* mavManagerSingletonFactory(QQmlEngine*, QJSEngine*) ...@@ -141,12 +149,6 @@ static QObject* mavManagerSingletonFactory(QQmlEngine*, QJSEngine*)
* @param argv The string array of parameters * @param argv The string array of parameters
**/ **/
static void qgcputenv(const QString& key, const QString& root, const QString& path)
{
QString value = root + path;
qputenv(key.toStdString().c_str(), QByteArray(value.toStdString().c_str()));
}
QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting) QGCApplication::QGCApplication(int &argc, char* argv[], bool unitTesting)
: QApplication(argc, argv) : QApplication(argc, argv)
, _runningUnitTests(unitTesting) , _runningUnitTests(unitTesting)
......
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