Skip to content

Commit 88edd8b

Browse files
committedMar 9, 2019
use nan as return values of unreachable branch
1 parent 7c6b66b commit 88edd8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/core/layout/qgslayoutaligner.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* *
1515
***************************************************************************/
1616

17+
#include <cmath>
18+
1719
#include "qgslayoutaligner.h"
1820
#include "qgslayoutitem.h"
1921
#include "qgslayout.h"
@@ -177,7 +179,7 @@ void QgsLayoutAligner::distributeItems( QgsLayout *layout, const QList<QgsLayout
177179
case DistributeHSpace:
178180
case DistributeVSpace:
179181
// not reachable branch, just to avoid compilation warning
180-
return 0.0;
182+
return nan("");
181183
}
182184
// no warnings
183185
return itemBBox.left();

0 commit comments

Comments
 (0)
Please sign in to comment.