summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-11 20:43:06 +0000
committerrubidium <rubidium@openttd.org>2009-11-11 20:43:06 +0000
commitac25ba62d2c6e1e19d3b1bbc5978b976348611c1 (patch)
tree22590d61dda35e261c3d73a77cd59995637124f0 /src/newgrf_text.cpp
parent8f9157b6486374983cc82c10037b34644f48e75a (diff)
downloadopenttd-ac25ba62d2c6e1e19d3b1bbc5978b976348611c1.tar.xz
(svn r18041) -Codechange: some coding style
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r--src/newgrf_text.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp
index 087901cd0..5b3e7d03c 100644
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -119,36 +119,36 @@ enum GRFExtendedLanguages {
* but according to a different lang.
*/
struct GRFText {
- public:
- static GRFText* New(byte langid, const char* text)
- {
- return new(strlen(text) + 1) GRFText(langid, text);
- }
+public:
+ static GRFText *New(byte langid, const char *text)
+ {
+ return new (strlen(text) + 1) GRFText(langid, text);
+ }
- private:
- GRFText(byte langid_, const char* text_) : next(NULL), langid(langid_)
- {
- strcpy(text, text_);
- }
+private:
+ GRFText(byte langid_, const char *text_) : next(NULL), langid(langid_)
+ {
+ strcpy(text, text_);
+ }
- void *operator new(size_t size, size_t extra)
- {
- return ::operator new(size + extra);
- }
+ void *operator new(size_t size, size_t extra)
+ {
+ return ::operator new(size + extra);
+ }
public:
- /* dummy operator delete to silence VC8:
- * 'void *GRFText::operator new(size_t,size_t)' : no matching operator delete found;
- * memory will not be freed if initialization throws an exception */
- void operator delete(void *p, size_t extra)
- {
- return ::operator delete(p);
- }
+ /* dummy operator delete to silence VC8:
+ * 'void *GRFText::operator new(size_t,size_t)' : no matching operator delete found;
+ * memory will not be freed if initialization throws an exception */
+ void operator delete(void *p, size_t extra)
+ {
+ return ::operator delete(p);
+ }
- public:
- GRFText *next;
- byte langid;
- char text[];
+public:
+ GRFText *next;
+ byte langid;
+ char text[];
};