mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move intdup to qthelper
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
0d36b6e4e8
commit
ab1813a445
4 changed files with 12 additions and 18 deletions
|
|
@ -1509,3 +1509,12 @@ QString getUUID()
|
|||
uuidString.replace("{", "").replace("}", "");
|
||||
return uuidString;
|
||||
}
|
||||
|
||||
char *intdup(int index)
|
||||
{
|
||||
char tmpbuf[21];
|
||||
|
||||
snprintf(tmpbuf, sizeof(tmpbuf) - 2, "%d", index);
|
||||
tmpbuf[20] = 0;
|
||||
return strdup(tmpbuf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue