Skip to content

Commit 92ca1bf

Browse files
author
Raphael Dumusc
committed
Merge pull request #62 from tribal-tec/master
Fix MSVC build
2 parents b002dc6 + 65e10cb commit 92ca1bf

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.gitexternals

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# -*- mode: cmake -*-
2-
# CMake/common https://github.com/Eyescale/CMake.git 9a0223f
2+
# CMake/common https://github.com/Eyescale/CMake.git c351af3

deflect/config.h

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
# define final
4646
# define override
4747
# endif
48+
# ifndef CXX_NOEXCEPT_SUPPORTED
49+
# define noexcept
50+
# endif
4851
#endif
4952

5053
#endif

deflect/qt/QmlStreamer.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
#ifndef QMLSTREAMER_H
4141
#define QMLSTREAMER_H
4242

43+
#include <deflect/qt/api.h>
44+
4345
#include <QString>
4446
#include <QQuickItem>
4547

@@ -67,12 +69,13 @@ class QmlStreamer
6769
* @param qmlFile URL to QML file to load
6870
* @param streamHost hostname of the Deflect server
6971
*/
70-
QmlStreamer( const QString& qmlFile, const std::string& streamHost );
72+
DEFLECTQT_API QmlStreamer( const QString& qmlFile,
73+
const std::string& streamHost );
7174

72-
~QmlStreamer();
75+
DEFLECTQT_API ~QmlStreamer();
7376

7477
/** @return the QML root item, might be nullptr if not ready yet. */
75-
QQuickItem* getRootItem();
78+
DEFLECTQT_API QQuickItem* getRootItem();
7679

7780
private:
7881
QmlStreamer( const QmlStreamer& ) = delete;

deflect/qt/QmlStreamerImpl.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ namespace deflect
7575
namespace qt
7676
{
7777

78-
QmlStreamer::QmlStreamer::Impl::Impl( const QString& qmlFile,
79-
const std::string& streamHost )
78+
QmlStreamer::Impl::Impl( const QString& qmlFile, const std::string& streamHost )
8079
: QWindow()
8180
, _context( new QOpenGLContext )
8281
, _offscreenSurface( new QOffscreenSurface )

0 commit comments

Comments
 (0)