Fix warnings

This commit is contained in:
Nyall Dawson 2017-10-16 10:59:14 +10:00
parent eac1096078
commit 6e40b88fd7
5 changed files with 4 additions and 5 deletions

View File

@ -103,7 +103,7 @@ class QgsProjectionSelectionTreeWidget : QWidget
.. seealso:: previewRect()
%End
const QgsRectangle previewRect();
QgsRectangle previewRect() const;
%Docstring
The initial "preview" rectangle for the bounds overview map.
.. versionadded:: 3.0

View File

@ -2117,7 +2117,7 @@ int QgsCoordinateReferenceSystem::syncDatabase()
}
QTextStream lines( &csv );
QString header = lines.readLine();
( void )lines.readLine(); // header line
for ( ;; )
{

View File

@ -324,7 +324,7 @@ void QgsProjectionSelectionTreeWidget::setPreviewRect( const QgsRectangle &rect
mVertexMarker->show();
}
const QgsRectangle QgsProjectionSelectionTreeWidget::previewRect()
QgsRectangle QgsProjectionSelectionTreeWidget::previewRect() const
{
return mPreviewRect;
}

View File

@ -117,7 +117,7 @@ class GUI_EXPORT QgsProjectionSelectionTreeWidget : public QWidget, private Ui::
* \since QGIS 3.0
* \see previewRect()
*/
const QgsRectangle previewRect();
QgsRectangle previewRect() const;
/**
* \brief filters this widget by the given CRSs

View File

@ -309,7 +309,6 @@
<height>16777215</height>
</size>
</property>
<zorder>mExtentsLabel</zorder>
</widget>
</item>
</layout>