diff options
author | JMcKiern <jmckiern@tcd.ie> | 2019-09-29 21:27:32 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-09-29 21:27:32 +0100 |
commit | 04f659e768486da4fc73a97a633f140d9733bf78 (patch) | |
tree | 7d1ecef7d6a39891d2485ae8a0ef8f12673d2b93 /src/misc | |
parent | 316e4e94171d8d269b80dd9e329fc1fe610fbfe2 (diff) | |
download | openttd-04f659e768486da4fc73a97a633f140d9733bf78.tar.xz |
Fix: Some typos found using codespell
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/blob.hpp | 4 | ||||
-rw-r--r-- | src/misc/countedptr.hpp | 2 | ||||
-rw-r--r-- | src/misc/str.hpp | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/misc/blob.hpp b/src/misc/blob.hpp index e725ccd27..fafeb8078 100644 --- a/src/misc/blob.hpp +++ b/src/misc/blob.hpp @@ -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); diff --git a/src/misc/countedptr.hpp b/src/misc/countedptr.hpp index 83d0e036d..1364197dc 100644 --- a/src/misc/countedptr.hpp +++ b/src/misc/countedptr.hpp @@ -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(); diff --git a/src/misc/str.hpp b/src/misc/str.hpp index 1d9802288..42e463158 100644 --- a/src/misc/str.hpp +++ b/src/misc/str.hpp @@ -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(); |