summaryrefslogtreecommitdiff
path: root/src/newgrf_text.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-05-17 23:31:51 +0200
committerMichael Lutz <michi@icosahedron.de>2020-05-21 20:02:34 +0200
commitc082f570cebd237c35de9caa08fcc84a9c44e95d (patch)
tree7e0e85e1a3f14db83a82e4861899578c2383529d /src/newgrf_text.h
parent808c8198d5ab61c457d0351ff7971b75ee17c10a (diff)
downloadopenttd-c082f570cebd237c35de9caa08fcc84a9c44e95d.tar.xz
Codechange: Use std::string when translating TTDP NewGRF string codes.
Diffstat (limited to 'src/newgrf_text.h')
-rw-r--r--src/newgrf_text.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_text.h b/src/newgrf_text.h
index bdd1f1bc9..2c7eb731d 100644
--- a/src/newgrf_text.h
+++ b/src/newgrf_text.h
@@ -39,7 +39,7 @@ const char *GetGRFStringFromGRFText(const GRFTextWrapper &text);
const char *GetGRFStringPtr(uint16 stringid);
void CleanUpStrings();
void SetCurrentGrfLangID(byte language_id);
-char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newlines, const char *str, int *olen = nullptr, StringControlCode byte80 = SCC_NEWGRF_PRINT_WORD_STRING_ID);
+std::string TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, bool allow_newlines, const std::string &str, StringControlCode byte80 = SCC_NEWGRF_PRINT_WORD_STRING_ID);
void AddGRFTextToList(GRFTextList &list, byte langid, uint32 grfid, bool allow_newlines, const char *text_to_add);
void AddGRFTextToList(GRFTextWrapper &list, byte langid, uint32 grfid, bool allow_newlines, const char *text_to_add);
void AddGRFTextToList(GRFTextWrapper &list, const char *text_to_add);