Codechange: use std::string to build ScriptText's encoded text

This commit is contained in:
Rubidium
2023-06-06 17:01:37 +02:00
committed by rubidium42
parent e32f0aa20b
commit ca1e34c121
2 changed files with 15 additions and 18 deletions

View File

@@ -138,13 +138,11 @@ private:
/**
* Internal function for recursive calling this function over multiple
* instances, while writing in the same buffer.
* @param p The current position in the buffer.
* @param lastofp The last position valid in the buffer.
* @param output The output to write the encoded text to.
* @param param_count The number of parameters that are in the string.
* @param seen_ids The list of seen StringID.
* @return The new current position in the buffer.
*/
char *_GetEncodedText(char *p, char *lastofp, int &param_count, StringIDList &seen_ids);
void _GetEncodedText(std::back_insert_iterator<std::string> &output, int &param_count, StringIDList &seen_ids);
/**
* Set a parameter, where the value is the first item on the stack.