mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r18041) -Codechange: some coding style
This commit is contained in:
parent
8f9157b648
commit
ac25ba62d2
@ -119,14 +119,14 @@ enum GRFExtendedLanguages {
|
||||
* but according to a different lang.
|
||||
*/
|
||||
struct GRFText {
|
||||
public:
|
||||
static GRFText* New(byte langid, const char* text)
|
||||
public:
|
||||
static GRFText *New(byte langid, const char *text)
|
||||
{
|
||||
return new(strlen(text) + 1) GRFText(langid, text);
|
||||
return new (strlen(text) + 1) GRFText(langid, text);
|
||||
}
|
||||
|
||||
private:
|
||||
GRFText(byte langid_, const char* text_) : next(NULL), langid(langid_)
|
||||
private:
|
||||
GRFText(byte langid_, const char *text_) : next(NULL), langid(langid_)
|
||||
{
|
||||
strcpy(text, text_);
|
||||
}
|
||||
@ -145,7 +145,7 @@ public:
|
||||
return ::operator delete(p);
|
||||
}
|
||||
|
||||
public:
|
||||
public:
|
||||
GRFText *next;
|
||||
byte langid;
|
||||
char text[];
|
||||
|
Loading…
Reference in New Issue
Block a user