Skip to content
Permalink
Browse files

use nan as return values of unreachable branch

  • Loading branch information
nastasi-oq committed Mar 9, 2019
1 parent 7c6b66b commit 88edd8b6a60dedadf4827dcfa894083daa905ef2
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/layout/qgslayoutaligner.cpp
@@ -14,6 +14,8 @@
* *
***************************************************************************/

#include <cmath>

#include "qgslayoutaligner.h"
#include "qgslayoutitem.h"
#include "qgslayout.h"
@@ -177,7 +179,7 @@ void QgsLayoutAligner::distributeItems( QgsLayout *layout, const QList<QgsLayout
case DistributeHSpace:
case DistributeVSpace:
// not reachable branch, just to avoid compilation warning
return 0.0;
return nan("");
}
// no warnings
return itemBBox.left();

0 comments on commit 88edd8b

Please sign in to comment.
You can’t perform that action at this time.