From e4076e6244cedf30ce433ba205ceb4339a6c2572 Mon Sep 17 00:00:00 2001 From: "Anthony J. Thibault" Date: Fri, 17 Feb 2017 09:45:13 -0800 Subject: [PATCH] warning fixes --- libraries/script-engine/src/TabletScriptingInterface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/script-engine/src/TabletScriptingInterface.cpp b/libraries/script-engine/src/TabletScriptingInterface.cpp index 4f269ef041..c78ce251c8 100644 --- a/libraries/script-engine/src/TabletScriptingInterface.cpp +++ b/libraries/script-engine/src/TabletScriptingInterface.cpp @@ -170,7 +170,6 @@ QObject* TabletScriptingInterface::getFlags() static const char* TABLET_SOURCE_URL = "Tablet.qml"; static const char* WEB_VIEW_SOURCE_URL = "TabletWebView.qml"; static const char* VRMENU_SOURCE_URL = "TabletMenu.qml"; -static int s_windowNameCounter = 1; class TabletRootWindow : public QmlWindowClass { virtual QString qmlSource() const { return "hifi/tablet/WindowRoot.qml"; } @@ -193,7 +192,7 @@ void TabletProxy::setToolbarMode(bool toolbarMode) { // create new desktop window auto offscreenUi = DependencyManager::get(); - offscreenUi->executeOnUiThread([=, this] { + offscreenUi->executeOnUiThread([=] { auto tabletRootWindow = new TabletRootWindow(); tabletRootWindow->initQml(QVariantMap()); auto quickItem = tabletRootWindow->asQuickItem();