Fix: Some typos found using codespell

This commit is contained in:
JMcKiern
2019-09-29 21:27:32 +01:00
committed by Charles Pigott
parent 316e4e9417
commit 04f659e768
106 changed files with 176 additions and 176 deletions

View File

@@ -154,13 +154,13 @@ protected:
header = &src[1];
}
/** blob header accessor - use it rather than using the pointer arithmetics directly - non-const version */
/** blob header accessor - use it rather than using the pointer arithmetic directly - non-const version */
inline BlobHeader& Hdr()
{
return *(header - 1);
}
/** blob header accessor - use it rather than using the pointer arithmetics directly - const version */
/** blob header accessor - use it rather than using the pointer arithmetic directly - const version */
inline const BlobHeader& Hdr() const
{
return *(header - 1);

View File

@@ -53,7 +53,7 @@ public:
}
protected:
/** add one ref to the underlaying object */
/** add one ref to the underlying object */
inline void AddRef()
{
if (m_pT != nullptr) m_pT->AddRef();

View File

@@ -7,7 +7,7 @@
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file str.hpp String formating? */
/** @file str.hpp String formatting? */
#ifndef STR_HPP
#define STR_HPP
@@ -91,7 +91,7 @@ struct CStrA : public CBlobT<char>
return strcmp(base::Data(), other.Data()) < 0;
}
/** Add formated string (like vsprintf) at the end of existing contents. */
/** Add formatted string (like vsprintf) at the end of existing contents. */
int AddFormatL(const char *format, va_list args)
{
size_t addSize = max<size_t>(strlen(format), 16);
@@ -126,7 +126,7 @@ struct CStrA : public CBlobT<char>
return ret;
}
/** Add formated string (like sprintf) at the end of existing contents. */
/** Add formatted string (like sprintf) at the end of existing contents. */
int CDECL WARN_FORMAT(2, 3) AddFormat(const char *format, ...)
{
va_list args;
@@ -136,7 +136,7 @@ struct CStrA : public CBlobT<char>
return ret;
}
/** Assign formated string (like sprintf). */
/** Assign formatted string (like sprintf). */
int CDECL WARN_FORMAT(2, 3) Format(const char *format, ...)
{
base::Free();