Skip to content

Commit

Permalink
Fix range widget wrapper test
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 3, 2019
1 parent 7d2deb4 commit 6f43c98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsdoublespinbox.cpp
Expand Up @@ -29,7 +29,7 @@
// This is required because private implementation of
// QAbstractSpinBoxPrivate checks for specialText emptiness
// and skips specialText handling if it's empty
static constexpr QChar const &SPECIAL_TEXT_WHEN_EMPTY = QChar( 0x2063 );
static constexpr QChar SPECIAL_TEXT_WHEN_EMPTY = QChar( 0x2063 );

QgsDoubleSpinBox::QgsDoubleSpinBox( QWidget *parent )
: QDoubleSpinBox( parent )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsspinbox.cpp
Expand Up @@ -29,7 +29,7 @@
// This is required because private implementation of
// QAbstractSpinBoxPrivate checks for specialText emptiness
// and skips specialText handling if it's empty
static constexpr QChar const &SPECIAL_TEXT_WHEN_EMPTY = QChar( 0x2063 );
static constexpr QChar SPECIAL_TEXT_WHEN_EMPTY = QChar( 0x2063 );

QgsSpinBox::QgsSpinBox( QWidget *parent )
: QSpinBox( parent )
Expand Down
4 changes: 2 additions & 2 deletions tests/src/gui/testqgsrangewidgetwrapper.cpp
Expand Up @@ -33,7 +33,7 @@

#include <memory>

static constexpr QChar const &SPECIAL_TEXT_WHEN_EMPTY = QChar( 0x2063 );
#define SPECIAL_TEXT_WHEN_EMPTY QString( QChar( 0x2063 ) )

/**
* @ingroup UnitTests
Expand Down Expand Up @@ -289,7 +289,7 @@ void TestQgsRangeWidgetWrapper::test_setDoubleLimits()
void TestQgsRangeWidgetWrapper::test_nulls()
{

QgsApplication::setNullRepresentation( QString( "" ) );
QgsApplication::setNullRepresentation( QString() );

QVariantMap cfg;
cfg.insert( QStringLiteral( "Min" ), 100.00 );
Expand Down

0 comments on commit 6f43c98

Please sign in to comment.