mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Use to_string function
This commit is contained in:
parent
6a21ec854b
commit
816512879d
@ -93,14 +93,6 @@ Messages const & getMessages(string const &)
|
|||||||
|
|
||||||
namespace support {
|
namespace support {
|
||||||
|
|
||||||
string itoa(unsigned int i)
|
|
||||||
{
|
|
||||||
char buf[20];
|
|
||||||
sprintf(buf, "%d", i);
|
|
||||||
return buf;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// Returns the absolute pathnames of all lyx local sockets in
|
/// Returns the absolute pathnames of all lyx local sockets in
|
||||||
/// file system encoding.
|
/// file system encoding.
|
||||||
/// Parts stolen from lyx::support::DirList().
|
/// Parts stolen from lyx::support::DirList().
|
||||||
@ -469,7 +461,7 @@ int h(vector<docstring> const &)
|
|||||||
|
|
||||||
|
|
||||||
docstring clientName =
|
docstring clientName =
|
||||||
from_ascii(itoa(::getppid()) + ">" + itoa(::getpid()));
|
from_ascii(to_string(::getppid()) + ">" + to_string(::getpid()));
|
||||||
|
|
||||||
int n(vector<docstring> const & arg)
|
int n(vector<docstring> const & arg)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user