Skip to content

Commit

Permalink
Misc. typos
Browse files Browse the repository at this point in the history
Found via `codespell -q 3 -I ../qgis-word-whitelist.txt --skip="*.ts,*.po,./scripts/spell_check"`
  • Loading branch information
luzpaz authored and jef-n committed Sep 6, 2018
1 parent d6b2537 commit 0908daa
Show file tree
Hide file tree
Showing 38 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion scripts/context_help_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"""
import hashlib
import sys
# check to see if a class name was specified and if so, craete the context id
# check to see if a class name was specified and if so, create the context id
if len(sys.argv) > 1:
hash = hashlib.sha1()
# set the hash to the name passed on the command line
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/interpolation/DualEdgeTriangulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ void DualEdgeTriangulation::eliminateHorizontalTriangles()
el2 = mPointVector[p2]->z();
el3 = mPointVector[p3]->z();

if ( el1 == el2 && el2 == el3 )//we found a horizonal triangle
if ( el1 == el2 && el2 == el3 )//we found a horizontal triangle
{
//swap edges if it is possible, if it would remove the horizontal triangle and if the minimum angle generated by the swap is high enough
if ( swapPossible( ( uint )e1 ) && mPointVector[mHalfEdge[mHalfEdge[mHalfEdge[e1]->getDual()]->getNext()]->getPoint()]->z() != el1 && swapMinAngle( e1 ) > minangle )
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgstriangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class CORE_EXPORT QgsTriangle : public QgsPolygon
bool isRight( double angleTolerance = 0.0001 ) const;

/**
* Is the triangle scalene (all sides have differen lengths)?
* Is the triangle scalene (all sides have different lengths)?
* \param lengthTolerance The tolerance to use
* \returns True or False. Always false for empty triangle.
* * Example:
Expand Down
2 changes: 1 addition & 1 deletion src/core/pal/pointset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ void PointSet::splitPolygons( QLinkedList<PointSet *> &shapes_toProcess,
if ( shape->parent )
delete shape;
}
// check for useless spliting
// check for useless splitting
else if ( imax == imin || nbPtSh1 <= 2 || nbPtSh2 <= 2 || nbPtSh1 == nbp || nbPtSh2 == nbp )
{
shapes_final.append( shape );
Expand Down
4 changes: 2 additions & 2 deletions src/core/processing/models/qgsprocessingmodelalgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ bool QgsProcessingModelAlgorithm::loadVariant( const QVariant &model )
for ( ; childIt != childMap.constEnd(); ++childIt )
{
QgsProcessingModelChildAlgorithm child;
// we be leniant here - even if we couldn't load a parameter, don't interrupt the model loading
// we be lenient here - even if we couldn't load a parameter, don't interrupt the model loading
// otherwise models may become unusable (e.g. due to removed plugins providing algs/parameters)
// with no way for users to repair them
if ( !child.loadVariant( childIt.value() ) )
Expand Down Expand Up @@ -893,7 +893,7 @@ bool QgsProcessingModelAlgorithm::loadVariant( const QVariant &model )
for ( ; paramDefIt != paramDefMap.constEnd(); ++paramDefIt )
{
std::unique_ptr< QgsProcessingParameterDefinition > param( QgsProcessingParameters::parameterFromVariantMap( paramDefIt.value().toMap() ) );
// we be leniant here - even if we couldn't load a parameter, don't interrupt the model loading
// we be lenient here - even if we couldn't load a parameter, don't interrupt the model loading
// otherwise models may become unusable (e.g. due to removed plugins providing algs/parameters)
// with no way for users to repair them
if ( param )
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsdataitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class CORE_EXPORT QgsDataItem : public QObject
QVector<QgsDataItem *> mChildren; // easier to have it always
State mState;
QString mName;
// Path is slash ('/') separated chain of item identifiers which are usually item names, but may be differen if it is
// Path is slash ('/') separated chain of item identifiers which are usually item names, but may be different if it is
// necessary to distinguish paths of two providers to the same source (e.g GRASS location and standard directory have the same
// name but different paths). Identifiers in path must not contain '/' characters.
// The path is used to identify item in tree.
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsgmlschema.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class CORE_EXPORT QgsGmlSchema : public QObject
BoundingBox,
FeatureMembers, // gml:featureMembers
FeatureMember, // gml:featureMember
Feature, // feature element containint attrs and geo (inside gml:featureMember)
Feature, // feature element containing attrs and geo (inside gml:featureMember)
Attribute,
Geometry
};
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgslegendsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ QgsLegendSettings::QgsLegendSettings()
QStringList QgsLegendSettings::splitStringForWrapping( const QString &stringToSplt ) const
{
QStringList list;
// If the string contains nothing then just return the string without spliting.
// If the string contains nothing then just return the string without splitting.
if ( wrapChar().count() == 0 )
list << stringToSplt;
else
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgstestutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ bool QgsTestUtils::testProviderIteratorThreadSafety( QgsVectorDataProvider *prov
jobs.append( qMakePair( provider, request ) );
}

//freaking hammmer the provider with a ton of concurrent requests.
//freaking hammer the provider with a ton of concurrent requests.
//thread unsafe providers... you better be ready!!!!
QtConcurrent::blockingMap( jobs, getFeaturesForProvider );

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
void editCommandEnded();

/**
* Signal emitted, whan an edit command is destroyed
* Signal emitted, when an edit command is destroyed
* \note This is not a rollback, it is only related to the current edit command.
* See beforeRollBack()
*/
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerdiagramprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class CORE_EXPORT QgsVectorLayerDiagramProvider : public QgsAbstractLabelProvide
protected:
//! initialization method - called from constructors
void init();
//! helper method to register one diagram feautre
//! helper method to register one diagram feature
QgsLabelFeature *registerDiagram( QgsFeature &feat, QgsRenderContext &context, const QgsGeometry &obstacleGeometry = QgsGeometry() );

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterpipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class CORE_EXPORT QgsRasterPipe
* Returns true on success */
bool setOn( int idx, bool on );

//! Test if interface at index may be swithed on/off
//! Test if interface at index may be switched on/off
bool canSetOn( int idx, bool on );

// Getters for special types of interfaces
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgsstyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typedef QMap<int, QString> QgsSymbolGroupMap;
*
* The supported constraints are:
* tag -> symbol has the tag matching the parameter
* !tag -> symbol doesnot have the tag matching the parameter
* !tag -> symbol doesn't have the tag matching the parameter
* name -> symbol has a part of its name matching the parameter
* !name -> symbol doesn't have any part of the name matching the parameter
*
Expand Down
2 changes: 1 addition & 1 deletion src/gui/auth/qgsauthsslconfigwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class GUI_EXPORT QgsAuthSslConfigWidget : public QWidget, private Ui::QgsAuthSsl
//! Gets the host:port to associate with the server certificate
const QString sslHost();

//! Gets the SSL protocl used for connections
//! Gets the SSL protocol used for connections
QSsl::SslProtocol sslProtocol();

//! Gets list of the SSL errors (as enums) to be ignored for connections
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsattributedialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class GUI_EXPORT QgsAttributeDialog : public QDialog
void setEditCommandMessage( const QString &message ) { mAttributeForm->setEditCommandMessage( message ); }

/**
* Intercept window activate/deactive events to show/hide the highlighted feature.
* Intercept window activate/deactivate events to show/hide the highlighted feature.
*
* \param e The event
*
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsattributetypeloaddialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class GUI_EXPORT QgsAttributeTypeLoadDialog: public QDialog, private Ui::QgsAttr
/**
* Returns the value map which is currently active.
*
* \returns value map of vlues selected from layer
* \returns value map of values selected from layer
*/
QMap<QString, QVariant> &valueMap();

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsrasterformatsaveoptionswidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class GUI_EXPORT QgsRasterFormatSaveOptionsWidget: public QWidget, private Ui::Q
void apply();

/**
* Opens window with options desctiption for given provider
* Opens window with options description for given provider
* and output format
*/
void helpOptions();
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsrasterlayersaveasdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,12 +703,12 @@ void QgsRasterLayerSaveAsDialog::mTileModeCheckBox_toggled( bool toggled )

// Disabled (Radim), auto enabling of pyramids was making impression that
// we (programmers) know better what you (user) want to do,
// certainly auto expaning was bad experience
// certainly auto expanding was a bad experience

//if ( ! mPyramidsGroupBox->isChecked() )
// mPyramidsGroupBox->setChecked( true );

// Auto expanding mPyramidsGroupBox is bad - it auto crolls content of dialog
// Auto expanding mPyramidsGroupBox is bad - it auto scrolls content of dialog
//if ( mPyramidsGroupBox->isCollapsed() )
// mPyramidsGroupBox->setCollapsed( false );
//mPyramidsOptionsWidget->checkAllLevels( true );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsrelationeditorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ QgsRelationEditorWidget::QgsRelationEditorWidget( QWidget *parent )
// buttons
QHBoxLayout *buttonLayout = new QHBoxLayout();
buttonLayout->setContentsMargins( 0, 0, 0, 0 );
// toogle editing
// toggle editing
mToggleEditingButton = new QToolButton( this );
mToggleEditingButton->setObjectName( QStringLiteral( "mToggleEditingButton" ) );
mToggleEditingButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionToggleEditing.svg" ) ) );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/symbology/qgsrulebasedrendererwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class QgsSymbolSelectorWidget;

#include <QAbstractItemModel>

/* Features count fro rule */
/* Features count for rule */
struct QgsRuleBasedRendererCount SIP_SKIP
{
int count; // number of features
Expand Down
2 changes: 1 addition & 1 deletion src/providers/grass/qgsgrassgislib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ int GRASS_LIB_EXPORT QgsGrassGisLib::G__gisinit( const char *version, const char
}
mDistanceArea.setSourceCrs( mCrs );

// Read region fron environment variable
// Read region from environment variable
// QGIS_GRASS_REGION=west,south,east,north,cols,rows
#if 0
QString regionStr = getenv( "QGIS_GRASS_REGION" );
Expand Down
2 changes: 1 addition & 1 deletion src/providers/mssql/qgsmssqlsourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ void QgsMssqlSourceSelect::btnConnect_clicked()
else
{
QApplication::restoreOverrideCursor();
// Let user know we couldn't retieve tables from the MSSQL provider
// Let user know we couldn't retrieve tables from the MSSQL provider
QMessageBox::warning( this,
tr( "MSSQL Provider" ), q.lastError().text() );
return;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/wcs/qgswcsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static QString WCS_DESCRIPTION = QStringLiteral( "OGC Web Coverage Service versi

static QString DEFAULT_LATLON_CRS = QStringLiteral( "CRS:84" );

// TODO: colortable - use comon baseclass with gdal, mapserver does not support http://trac.osgeo.org/mapserver/ticket/1671
// TODO: colortable - use common baseclass with gdal, mapserver does not support http://trac.osgeo.org/mapserver/ticket/1671

QgsWcsProvider::QgsWcsProvider( const QString &uri, const ProviderOptions &options )
: QgsRasterDataProvider( uri, options )
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgsbufferserverresponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class SERVER_EXPORT QgsBufferServerResponse: public QgsServerResponse
QMap<QString, QString> headers() const override { return mHeaders; }

/**
* Returns true if the headers have alredy been sent
* Returns true if the headers have already been sent
*/
bool headersSent() const override;

Expand Down
2 changes: 1 addition & 1 deletion src/server/qgsserverresponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class SERVER_EXPORT QgsServerResponse
virtual QMap<QString, QString> headers() const = 0;

/**
* Returns true if the headers have alredy been sent
* Returns true if the headers have already been sent
*/
virtual bool headersSent() const = 0;

Expand Down
4 changes: 2 additions & 2 deletions src/server/services/wfs/qgswfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
qgswms.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
(C) 2012 by René-Luc D'Hont ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfsutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
qgsfssutils.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2017 by David Marteau
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wfs/qgswfsutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Define WFS service utility functions
------------------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswfshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswfshandler)
(C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswfshandler)
(C) 2017 by David Marteau
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgsmediancut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
qgsmediancut.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgsmediancut.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Median cut color reduction implementation
-----------------------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
qgswms.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
qgswmsutils.cpp
-------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Define WMS service utility functions
------------------------------------
begin : December 20 , 2016
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
(C) 2016 by David Marteau
email : marco dot hugentobler at karto dot baug dot ethz dot ch
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgslayoutobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TestQgsLayoutObject: public QObject
void context();
void writeReadXml();
void writeRetrieveDDProperty(); //test writing and retrieving dd properties from xml
void writeRetrieveCustomProperties(); //test writing/retreiving custom properties from xml
void writeRetrieveCustomProperties(); //test writing/retrieving custom properties from xml