Skip to content
Permalink
Browse files

Typos

  • Loading branch information...
SupSuper committed Jul 9, 2019
1 parent ff40985 commit d6b8c6ef16d5dfc2ed98926f7ee7c734e65ac816
@@ -31,7 +31,7 @@ namespace OpenXcom
* @param id The unique identifier of the menu item.
* @param game Pointer to the game.
* @param x Position on the x-axis.
* @param y Position on the y-asis.
* @param y Position on the y-axis.
*/
ActionMenuItem::ActionMenuItem(int id, Game *game, int x, int y) : InteractiveSurface(272, 40, x + 24, y - (id*40)), _highlighted(false), _action(BA_NONE), _tu(0)
{
@@ -1250,7 +1250,7 @@ bool BattlescapeGame::handlePanickingPlayer()
}

/**
* Common function for hanlding panicking units.
* Common function for handling panicking units.
* @return False when unit not in panicking mode.
*/
bool BattlescapeGame::handlePanickingUnit(BattleUnit *unit)
@@ -470,7 +470,7 @@ std::vector<std::string> getFolderContents(const std::string &path, const std::s
{
std::string file = dirp->d_name;

if (file.length() >= 1 && file[0] == '.')
if (!file.empty() && file[0] == '.')
{
//skip ".", "..", ".git", ".svn", ".bashrc", ".ssh" etc.
continue;
@@ -99,7 +99,7 @@ const std::vector<std::pair<std::string, std::vector<std::string> > > &getRulese
static std::string _combinePath(const std::string &prefixPath, const std::string &appendPath)
{
std::string ret;
if (prefixPath.length())
if (!prefixPath.empty())
{
ret += prefixPath + "/";
}
@@ -474,7 +474,7 @@ void TextEdit::keyboardPress(Action *action, State *state)
}
break;
case SDLK_LEFT:
if (_value.length() > 0)
if (!_value.empty())
{
_value.resize(_value.length() - 1);
}
@@ -485,7 +485,8 @@ void TextEdit::keyboardPress(Action *action, State *state)
_value += _char;
}
break;
default: break;
default:
break;
}
}
else if (Options::keyboardMode == KEYBOARD_ON)
@@ -537,6 +538,7 @@ void TextEdit::keyboardPress(Action *action, State *state)
_value.insert(_caretPos, 1, c);
_caretPos++;
}
break;
}
}
_redraw = true;
@@ -45,7 +45,7 @@ class AlienStrategy
std::string chooseRandomRegion(const Mod *mod);
/// Choose a random mission for a region.
std::string chooseRandomMission(const std::string &region) const;
/// Remove a region and mission from the list of posibilities.
/// Remove a region and mission from the list of possibilities.
bool removeMission(const std::string &region, const std::string &mission);
/// Checks the number of missions run labelled as "varName".
int getMissionsRun(const std::string &varName);
@@ -27,7 +27,7 @@ namespace OpenXcom
class ArticleDefinitionVehicle;

/**
* ArticleStateVehicle hasa caption, text and a stats block.
* ArticleStateVehicle has a caption, text and a stats block.
*/

class ArticleStateVehicle : public ArticleState

0 comments on commit d6b8c6e

Please sign in to comment.
You can’t perform that action at this time.