History

Merge pull request #15327 from Atlante45/fix/warnings

Case 22065: Fix mac warnings

Howard Stearns committed 7 years ago

Commit da1597c2 parents 404be42 0f2dbd76 files · +8 −8Browse files

Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all

Unified · Split

interface/src/Application.cpp+3−3
@@ -2331,7 +2331,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 2330 unmodified lines
23312331 DependencyManager::get<PickManager>()->setPrecisionPicking(rayPickID, value);
23322332 });
23332333
2334− EntityItem::setBillboardRotationOperator([this](const glm::vec3& position, const glm::quat& rotation, BillboardMode billboardMode, const glm::vec3& frustumPos) {
2334+ EntityItem::setBillboardRotationOperator([](const glm::vec3& position, const glm::quat& rotation, BillboardMode billboardMode, const glm::vec3& frustumPos) {
23352335 if (billboardMode == BillboardMode::YAW) {
23362336 //rotate about vertical to face the camera
23372337 glm::vec3 dPosition = frustumPos - position;
@@ -2359,7 +2359,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 21 unmodified lines
23592359
23602360 DependencyManager::get<UsersScriptingInterface>()->setKickConfirmationOperator([this] (const QUuid& nodeID) { userKickConfirmation(nodeID); });
23612361
2362− render::entities::WebEntityRenderer::setAcquireWebSurfaceOperator([this](const QString& url, bool htmlContent, QSharedPointer<OffscreenQmlSurface>& webSurface, bool& cachedWebSurface) {
2362+ render::entities::WebEntityRenderer::setAcquireWebSurfaceOperator([=](const QString& url, bool htmlContent, QSharedPointer<OffscreenQmlSurface>& webSurface, bool& cachedWebSurface) {
23632363 bool isTablet = url == TabletScriptingInterface::QML;
23642364 if (htmlContent) {
23652365 webSurface = DependencyManager::get<OffscreenQmlSurfaceCache>()->acquire(render::entities::WebEntityRenderer::QML);
@@ -2399,7 +2399,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 33 unmodified lines
23992399 const uint8_t TABLET_FPS = 90;
24002400 webSurface->setMaxFps(isTablet ? TABLET_FPS : DEFAULT_MAX_FPS);
24012401 });
2402− render::entities::WebEntityRenderer::setReleaseWebSurfaceOperator([this](QSharedPointer<OffscreenQmlSurface>& webSurface, bool& cachedWebSurface, std::vector<QMetaObject::Connection>& connections) {
2402+ render::entities::WebEntityRenderer::setReleaseWebSurfaceOperator([=](QSharedPointer<OffscreenQmlSurface>& webSurface, bool& cachedWebSurface, std::vector<QMetaObject::Connection>& connections) {
24032403 QQuickItem* rootItem = webSurface->getRootItem();
24042404
24052405 // Fix for crash in QtWebEngineCore when rapidly switching domains