Skip to content

Commit

Permalink
Fix typos in exception messages and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Jan 24, 2017
1 parent 40f9789 commit 5643b35
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion cclass.pl
Expand Up @@ -171,7 +171,7 @@
* Set command option.
*
* \@param cod Command option description.
* \@param args Option arguments arry.
* \@param args Option arguments array.
* \@param argenc Arguments encoding.
*/
Expand Down
4 changes: 2 additions & 2 deletions th2ddataobject.h
Expand Up @@ -142,7 +142,7 @@ class th2ddataobject : public thdataobject {

const char * m_subtype_str;

th2ddataobject * pscrapoptr, ///< Previos object in the scrap.
th2ddataobject * pscrapoptr, ///< Previous object in the scrap.
* nscrapoptr; ///< Next object in the scrap.

class thscrap * fscrapptr; ///< Father scrap pointer.
Expand Down Expand Up @@ -198,7 +198,7 @@ class th2ddataobject : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion tharea.h
Expand Up @@ -186,7 +186,7 @@ class tharea : public th2ddataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thcomment.h
Expand Up @@ -127,7 +127,7 @@ class thcomment : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
4 changes: 2 additions & 2 deletions thdata.cxx
Expand Up @@ -1037,7 +1037,7 @@ void thdata::set_data_sd(int nargs, char ** args)

void thdata::set_data_data(int nargs, char ** args)
{
// OK, finish the data previosly specified
// OK, finish the data previously specified
this->complete_interleaved_data();
// first let's detect data type
this->reset_data();
Expand Down Expand Up @@ -2416,7 +2416,7 @@ void thdata::set_data_station(int nargs, char ** args, int argenc)
ththrow(("too few flags - missing attribute name"));
ai++;
if (strlen(args[ai]) == 0)
ththrow(("epmty attribute name not allowed"))
ththrow(("empty attribute name not allowed"))
if (args[ai][0] == '_')
ththrow(("attribute name starting with '_' not allowed -- %s", args[ai]))
if (!th_is_attr_name(args[ai]))
Expand Down
2 changes: 1 addition & 1 deletion thdata.h
Expand Up @@ -319,7 +319,7 @@ class thdata : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
6 changes: 3 additions & 3 deletions thdataobject.cxx
Expand Up @@ -183,7 +183,7 @@ void thdataobject::set(thcmd_option_desc cod, char ** args, int argenc, unsigned
thdata * cobj;
cobj = (thdata *) this;
if (cobj->cgroup->dl_declination_north_grid && (id == TTCS_LOCAL))
ththrow(("grid-angle has beed defined -- local CS not allowed"))
ththrow(("grid-angle has been defined -- local CS not allowed"))
cobj->cgroup->cs = id;
cobj->cgroup->cs_source = this->db->csrc;
}
Expand Down Expand Up @@ -415,7 +415,7 @@ void thdataobject::start_insert()

void thdataobject::convert_cs(char * src_x, char * src_y, double & dst_x, double & dst_y)
{
// 1. Check kompatibility with output CS.
// 1. Check compatibility with output CS.
if (thcfg.outcs_def.is_valid()) {
if (((this->cs == TTCS_LOCAL) && (thcfg.outcs != TTCS_LOCAL)) ||
((this->cs != TTCS_LOCAL) && (thcfg.outcs == TTCS_LOCAL)))
Expand Down Expand Up @@ -508,7 +508,7 @@ void thdataobject::parse_attribute(char * name, char * value) {

// check name
if ((name == NULL) || (strlen(name) == 0))
ththrow(("epmty attribute name not allowed"))
ththrow(("empty attribute name not allowed"))
if (name[0] == '_')
ththrow(("attribute name starting with '_' not allowed"))
if (!th_is_attr_name(name))
Expand Down
2 changes: 1 addition & 1 deletion thdataobject.h
Expand Up @@ -365,7 +365,7 @@ class thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thdb2dlp.h
Expand Up @@ -57,7 +57,7 @@ class thdb2dlp {
public:

thdb2dlp * nextlp, ///< Next line point.
* prevlp; ///< Previos line point.
* prevlp; ///< Previous line point.

thdb2dpt * point, ///< The point it self.
* cp1, ///< Control point 1.
Expand Down
2 changes: 1 addition & 1 deletion thendscrap.h
Expand Up @@ -125,7 +125,7 @@ class thendscrap : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thendsurvey.h
Expand Up @@ -100,7 +100,7 @@ class thendsurvey : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thgrade.h
Expand Up @@ -138,7 +138,7 @@ class thgrade : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thimport.h
Expand Up @@ -183,7 +183,7 @@ class thimport : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thjoin.h
Expand Up @@ -148,7 +148,7 @@ class thjoin : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thlayout.h
Expand Up @@ -649,7 +649,7 @@ class thlayout : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thline.h
Expand Up @@ -405,7 +405,7 @@ class thline : public th2ddataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thlookup.h
Expand Up @@ -210,7 +210,7 @@ class thlookup : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thmap.h
Expand Up @@ -161,7 +161,7 @@ class thmap : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thpoint.h
Expand Up @@ -504,7 +504,7 @@ class thpoint : public th2ddataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thscrap.h
Expand Up @@ -207,7 +207,7 @@ class thscrap : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thsurface.h
Expand Up @@ -157,7 +157,7 @@ class thsurface : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thsurvey.h
Expand Up @@ -197,7 +197,7 @@ class thsurvey : public thdataobject {
* Set command option.
*
* @param cod Command option description.
* @param args Option arguments arry.
* @param args Option arguments array.
* @param argenc Arguments encoding.
*/

Expand Down
2 changes: 1 addition & 1 deletion thtmpdir.h
Expand Up @@ -58,7 +58,7 @@ class thtmpdir {


/**
* Removes temporaty directory.
* Removes temporary directory.
*/

void remove();
Expand Down

0 comments on commit 5643b35

Please sign in to comment.