Simplify code for the "ICONV_USES_CONST" case even more. (i.e. remove the "msg" variable there).
svn-id: r49880
This commit is contained in:
parent
212d0ac28c
commit
a42ea73a76
1 changed files with 1 additions and 2 deletions
|
@ -130,8 +130,7 @@ bool TranslationManager::convert(const char *message) {
|
||||||
// Preparing conversion origin
|
// Preparing conversion origin
|
||||||
size_t len = strlen(message);
|
size_t len = strlen(message);
|
||||||
#ifdef ICONV_USES_CONST
|
#ifdef ICONV_USES_CONST
|
||||||
const char *msg = message;
|
const char **pmsg = &message;
|
||||||
const char **pmsg = &msg;
|
|
||||||
#else
|
#else
|
||||||
char *msgcpy = new char[len + 1];
|
char *msgcpy = new char[len + 1];
|
||||||
strcpy(msgcpy, message);
|
strcpy(msgcpy, message);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue