summaryrefslogtreecommitdiff
path: root/src/misc/str.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
committerrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
commit11da45ee55957c243854cd78705d81543541c061 (patch)
tree29e703244d28f29c8634b2d30f42b34852fe74bc /src/misc/str.hpp
parentc3839648f75ebfdca2f7d95b7d6a2b29445ab1c2 (diff)
downloadopenttd-11da45ee55957c243854cd78705d81543541c061.tar.xz
(svn r14949) -Cleanup: pointer coding style
Diffstat (limited to 'src/misc/str.hpp')
-rw-r--r--src/misc/str.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/misc/str.hpp b/src/misc/str.hpp
index 93e60d441..666c03187 100644
--- a/src/misc/str.hpp
+++ b/src/misc/str.hpp
@@ -19,19 +19,19 @@ struct CStrT : public CBlobT<Tchar>
typedef typename base::OnTransfer OnTransfer; ///< temporary 'transfer ownership' object type
/** Construction from C zero ended string. */
- FORCEINLINE CStrT(const Tchar* str = NULL)
+ FORCEINLINE CStrT(const Tchar *str = NULL)
{
AppendStr(str);
}
/** Construction from C string and given number of characters. */
- FORCEINLINE CStrT(const Tchar* str, bsize_t num_chars) : base(str, num_chars)
+ FORCEINLINE CStrT(const Tchar *str, bsize_t num_chars) : base(str, num_chars)
{
base::FixTail();
}
/** Construction from C string determined by 'begin' and 'end' pointers. */
- FORCEINLINE CStrT(const Tchar* str, const Tchar* end)
+ FORCEINLINE CStrT(const Tchar *str, const Tchar *end)
: base(str, end - str)
{
base::FixTail();
@@ -58,15 +58,15 @@ struct CStrT : public CBlobT<Tchar>
}
/** Grow the actual buffer and fix the trailing zero at the end. */
- FORCEINLINE Tchar* GrowSizeNC(bsize_t count)
+ FORCEINLINE Tchar *GrowSizeNC(bsize_t count)
{
- Tchar* ret = base::GrowSizeNC(count);
+ Tchar *ret = base::GrowSizeNC(count);
base::FixTail();
return ret;
}
/** Append zero-ended C string. */
- FORCEINLINE void AppendStr(const Tchar* str)
+ FORCEINLINE void AppendStr(const Tchar *str)
{
if (str != NULL && str[0] != '\0') {
base::Append(str, (bsize_t)Api::StrLen(str));
@@ -84,7 +84,7 @@ struct CStrT : public CBlobT<Tchar>
}
/** Assignment from C string. */
- FORCEINLINE CStrT& operator = (const Tchar* src)
+ FORCEINLINE CStrT& operator = (const Tchar *src)
{
base::Clear();
AppendStr(src);