diff options
author | yexo <yexo@openttd.org> | 2010-03-19 22:46:22 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-03-19 22:46:22 +0000 |
commit | f439b5767aad0cca6c2f40354fb4af2e398053aa (patch) | |
tree | 19f992433c5959b765ada67ef7f0fcbb11b57e6f /src/misc/str.hpp | |
parent | aab88496618e01baae68abe38b603ef9ef5d9dfb (diff) | |
download | openttd-f439b5767aad0cca6c2f40354fb4af2e398053aa.tar.xz |
(svn r19477) -Fix (r1946x): removed a few too functions including the copy constructor
Diffstat (limited to 'src/misc/str.hpp')
-rw-r--r-- | src/misc/str.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/misc/str.hpp b/src/misc/str.hpp index c0388852b..44595e9a6 100644 --- a/src/misc/str.hpp +++ b/src/misc/str.hpp @@ -56,6 +56,15 @@ struct CStrA : public CBlobT<char> } } + /** Append another CStrA. */ + FORCEINLINE void Append(const CStrA &src) + { + if (src.Length() > 0) { + base::AppendRaw(src); + base::FixTail(); + } + } + /** Assignment from C string. */ FORCEINLINE CStrA &operator = (const char *src) { |