Skip to content

Commit 6b470ee

Browse files
committed
Fix warning
1 parent 427ea51 commit 6b470ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/3d/qgs3dmapcanvas.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ class Qgs3DMapCanvas : public QWidget
6262

6363
/**
6464
* Sets the active map tool that will receive events from the 3D canvas. Does not transfer ownership.
65-
* If the tool is null, events will be used for camera manipulation.
65+
* If the tool is NULLPTR, events will be used for camera manipulation.
6666
*/
6767
void setMapTool( Qgs3DMapTool *tool );
6868

6969
/**
7070
* Returns the active map tool that will receive events from the 3D canvas.
71-
* If the tool is null, events will be used for camera manipulation.
71+
* If the tool is NULLPTR, events will be used for camera manipulation.
7272
*/
7373
Qgs3DMapTool *mapTool() const { return mMapTool; }
7474

src/core/symbology/qgslinesymbollayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ class MyLine
694694
else
695695
{
696696
mVertical = false;
697-
mT = float( p2.y() - p1.y() ) / ( p2.x() - p1.x() );
697+
mT = ( p2.y() - p1.y() ) / ( p2.x() - p1.x() );
698698
mIncreasing = ( p2.x() > p1.x() );
699699
}
700700

0 commit comments

Comments
 (0)