Skip to content

Commit b82ec17

Browse files
luzpaznyalldawson
authored andcommitted
Misc. source comment typos
+ added 2 strings in to spelling.dat file
1 parent d04b3d9 commit b82ec17

File tree

12 files changed

+15
-13
lines changed

12 files changed

+15
-13
lines changed

python/analysis/interpolation/NormVecDecorator.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Eliminates the horizontal triangles by swapping or by insertion of new points. I
5656
%End
5757
bool estimateFirstDerivative( int pointno );
5858
%Docstring
59-
Estimates the first derivative a point. Return true in case of succes and false otherwise
59+
Estimates the first derivative a point. Return true in case of success and false otherwise
6060
:rtype: bool
6161
%End
6262
bool estimateFirstDerivatives( QgsFeedback *feedback = 0 );

scripts/spell_check/spelling.dat

+2
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ amung:among
466466
amunition:ammunition
467467
an other:another
468468
analagous:analogous
469+
analise:analyze
469470
analitic:analytic
470471
analogeous:analogous
471472
analysator:analyzer
@@ -7576,6 +7577,7 @@ woudn't:wouldn't
75767577
would'nt:wouldn't
75777578
would't:wouldn't
75787579
wouldnt:wouldn't
7580+
wraper:wrapper
75797581
wresters:wrestlers
75807582
wriet:write
75817583
writeable:writable

src/analysis/interpolation/NormVecDecorator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ int NormVecDecorator::addPoint( const QgsPoint &p )
5959
estimateFirstDerivative( pointno );
6060
//update also the neighbours of the new point
6161
const QList<int> list = mTIN->getSurroundingTriangles( pointno );
62-
auto it = list.constBegin();//iterate through the list and analize it
62+
auto it = list.constBegin();//iterate through the list and analyze it
6363
while ( it != list.constEnd() )
6464
{
6565
int point;
@@ -393,7 +393,7 @@ bool NormVecDecorator::estimateFirstDerivative( int pointno )
393393
return false;
394394
}
395395

396-
auto it = vlist.constBegin();//iterate through the list and analize it
396+
auto it = vlist.constBegin();//iterate through the list and analyze it
397397
while ( it != vlist.constEnd() )
398398
{
399399
int p1, p2, p3, flag;

src/analysis/interpolation/NormVecDecorator.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ANALYSIS_EXPORT NormVecDecorator: public TriDecorator
5050
bool calcPoint( double x, double y, QgsPoint &result SIP_OUT ) override;
5151
//! Eliminates the horizontal triangles by swapping or by insertion of new points. If alreadyestimated is true, a re-estimation of the normals will be done
5252
void eliminateHorizontalTriangles() override;
53-
//! Estimates the first derivative a point. Return true in case of succes and false otherwise
53+
//! Estimates the first derivative a point. Return true in case of success and false otherwise
5454
bool estimateFirstDerivative( int pointno );
5555
//! This method adds the functionality of estimating normals at the data points. Return true in the case of success and false otherwise
5656
bool estimateFirstDerivatives( QgsFeedback *feedback = nullptr );

src/core/qgslabelsearchtree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class QgsPointXY;
3232

3333
/**
3434
* \ingroup core
35-
* A class to query the labeling structure at a given point (small wraper around pal RTree class)
35+
* A class to query the labeling structure at a given point (small wrapper around pal RTree class)
3636
*/
3737
class CORE_EXPORT QgsLabelSearchTree
3838
{

src/core/raster/qgsrasterdataprovider.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
407407
virtual bool setEditable( bool enabled ) { Q_UNUSED( enabled ); return false; }
408408

409409
//! Writes into the provider datasource
410-
// TODO: add data type (may be defferent from band type)
410+
// TODO: add data type (may be different from band type)
411411
virtual bool write( void *data, int band, int width, int height, int xOffset, int yOffset )
412412
{
413413
Q_UNUSED( data );

src/plugins/grass/qgsgrassmapcalc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class QgsGrassMapcalc: public QMainWindow, private Ui::QgsGrassMapcalcBase,
117117
//! Reset tool actions togles
118118
void setToolActionsOff( void );
119119

120-
//! Set currnt tool and toggle menu
120+
//! Set current tool and toggle menu
121121
void setTool( int );
122122

123123
//! Map selection changed

src/plugins/grass/qtermwidget/History.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class HistoryFile
7171
//pointer to start of mmap'ed file data, or 0 if the file is not mmap'ed
7272
char* fileMap;
7373

74-
//incremented whenver 'add' is called and decremented whenever
74+
//incremented whenever 'add' is called and decremented whenever
7575
//'get' is called.
7676
//this is used to detect when a large number of lines are being read and processed from the history
7777
//and automatically mmap the file for better performance (saves the overhead of many lseek-read calls).

src/plugins/grass/qtermwidget/Session.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void Session::run()
288288
* Thats bad for BSD as its /usr/local/bin/bash there - its also bad for arch as its /usr/bin/bash there too!
289289
* So i added a check to see if /bin/bash exists - if no then we use $SHELL - if that does not exist either, we fall back to /bin/sh
290290
* As far as i know /bin/sh exists on every unix system.. You could also just put some ifdef __FREEBSD__ here but i think these 2 filechecks are worth
291-
* their computing time on any system - especially with the problem on arch linux beeing there too.
291+
* their computing time on any system - especially with the problem on arch linux being there too.
292292
*/
293293
QString exec = QFile::encodeName(_program);
294294
// if 'exec' is not specified, fall back to default shell. if that

src/providers/grass/qgsgrassgislib.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ QgsGrassGisLib::QgsGrassGisLib()
100100
QString libPath = gisBase + "\\lib\\libgrass_gis." + QString( GRASS_VERSION ) + ".dll";
101101
#else
102102
QString libPath = QString( GRASS_LIBRARY_GIS );
103-
// Prefere GISBASE if set
103+
// Prefer GISBASE if set
104104
if ( !gisBase.isEmpty() )
105105
{
106106
libPath = gisBase + "/lib/" + QFileInfo( libPath ).fileName();

src/providers/ogr/qgsogrprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3992,7 +3992,7 @@ void QgsOgrProvider::open( OpenMode mode )
39923992
// Ensure subset is set (setSubsetString does nothing if the passed sql subset string is equal to mSubsetString, which is the case when reloading the dataset)
39933993
QString origSubsetString = mSubsetString;
39943994
mSubsetString.clear();
3995-
// Block signals to avoid endless recusion reloadData -> emit dataChanged -> reloadData
3995+
// Block signals to avoid endless recursion reloadData -> emit dataChanged -> reloadData
39963996
blockSignals( true );
39973997
// Do not update capabilities: it will be done later
39983998
mValid = _setSubsetString( origSubsetString, true, false );

src/providers/wcs/qgswcscapabilities.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ bool QgsWcsCapabilities::retrieveServerCapabilities()
224224
}
225225
else
226226
{
227-
// We prefer 1.0 because 1.1 has many issues, each server implements it in defferent
228-
// way with various particularities
227+
// We prefer 1.0 because 1.1 has many issues, each server implements it in
228+
// a different way with various particularities.
229229
// It may happen that server supports 1.1.0 but gives error for 1.1
230230
versions << QStringLiteral( "1.0.0" ) << QStringLiteral( "1.1.0,1.0.0" );
231231
}

0 commit comments

Comments
 (0)