]> git.lyx.org Git - features.git/commitdiff
Use to_string function
authorYuriy Skalko <yuriy.skalko@gmail.com>
Wed, 25 Nov 2020 22:17:29 +0000 (00:17 +0200)
committerYuriy Skalko <yuriy.skalko@gmail.com>
Fri, 27 Nov 2020 10:16:41 +0000 (12:16 +0200)
src/client/client.cpp

index dd69fe20f5a2bd186f10d3c5183f0700a0f9bc44..0a80107009020a7a8e1d6dba4392cc23d4583817 100644 (file)
@@ -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
 /// file system encoding.
 /// Parts stolen from lyx::support::DirList().
 /// Returns the absolute pathnames of all lyx local sockets in
 /// file system encoding.
 /// 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)
 {