Skip to content

Commit

Permalink
Move to C++14
Browse files Browse the repository at this point in the history
  • Loading branch information
tribal-tec committed Feb 6, 2018
1 parent 54c6e95 commit 600fed6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 67 deletions.
1 change: 0 additions & 1 deletion deflect/qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

set(DEFLECTQT_HEADERS
EventReceiver.h
helpers.h
QmlGestures.h
QmlStreamerImpl.h
)
Expand Down
3 changes: 1 addition & 2 deletions deflect/qt/QmlStreamerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include "EventReceiver.h"
#include "QmlGestures.h"
#include "TouchInjector.h"
#include "helpers.h"

#include <QCoreApplication>
#include <QQmlContext>
Expand All @@ -70,7 +69,7 @@ namespace qt
{
QmlStreamer::Impl::Impl(const QString& qmlFile, const std::string& streamHost,
const std::string& streamId)
: _quickView{new OffscreenQuickView{make_unique<QQuickRenderControl>(),
: _quickView{new OffscreenQuickView{std::make_unique<QQuickRenderControl>(),
renderMode}}
, _qmlGestures{new QmlGestures}
, _touchInjector{TouchInjector::create(*_quickView)}
Expand Down
4 changes: 1 addition & 3 deletions deflect/qt/TouchInjector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

#include "TouchInjector.h"

#include "helpers.h"

#include <QCoreApplication>
#include <QWindow>

Expand All @@ -61,7 +59,7 @@ std::unique_ptr<TouchInjector> TouchInjector::create(QWindow& window)
return QPointF{normPos.x() * window.width(),
normPos.y() * window.height()};
};
return make_unique<TouchInjector>(window, mapFunc);
return std::make_unique<TouchInjector>(window, mapFunc);
}

void TouchInjector::addTouchPoint(const int id, const QPointF position)
Expand Down
60 changes: 0 additions & 60 deletions deflect/qt/helpers.h

This file was deleted.

0 comments on commit 600fed6

Please sign in to comment.