Skip to content

Commit

Permalink
Reenable test and fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 11, 2019
1 parent 8611a37 commit 0c4d1f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -61,6 +61,8 @@

#include <QIODevice>

QgsDxfExport::QgsDxfExport() = default;

QgsDxfExport::~QgsDxfExport()
{
qDeleteAll( mJobs );
Expand Down
2 changes: 1 addition & 1 deletion src/core/dxf/qgsdxfexport.h
Expand Up @@ -138,7 +138,7 @@ class CORE_EXPORT QgsDxfExport
/**
* Constructor for QgsDxfExport.
*/
QgsDxfExport() = default;
QgsDxfExport();

~QgsDxfExport();

Expand Down
2 changes: 0 additions & 2 deletions src/core/dxf/qgsdxfexport_p.h
Expand Up @@ -30,8 +30,6 @@
*/
struct DxfLayerJob
{
DxfLayerJob() = default;

DxfLayerJob( QgsVectorLayer *vl, const QString &layerStyleOverride, QgsRenderContext &renderContext, QgsDxfExport *dxfExport, const QString &splitLayerAttribute )
: styleOverride( vl )
, expressionContext( renderContext.expressionContext() )
Expand Down
4 changes: 2 additions & 2 deletions tests/src/core/testqgsdxfexport.cpp
Expand Up @@ -341,14 +341,14 @@ void TestQgsDxfExport::testMtext_data()
QTest::addColumn<QString>( "layerName" );

QString filename = QStringLiteral( TEST_DATA_DIR ) + "/points.shp";
#if 0

QgsVectorLayer *pointLayer = new QgsVectorLayer( filename, QStringLiteral( "points" ), QStringLiteral( "ogr" ) );
QVERIFY( pointLayer->isValid() );

QTest::newRow( "MText" )
<< pointLayer
<< QStringLiteral( "mtext_dxf" );
#endif

QgsVectorLayer *pointLayerNoSymbols = new QgsVectorLayer( filename, QStringLiteral( "points" ), QStringLiteral( "ogr" ) );
QVERIFY( pointLayerNoSymbols->isValid() );
pointLayerNoSymbols->setRenderer( new QgsNullSymbolRenderer() );
Expand Down

0 comments on commit 0c4d1f7

Please sign in to comment.