commit 816512879d724eaaaa2902019fee8585bead3064
Author: Yuriy Skalko <[email protected]>
Date:   Thu Nov 26 00:17:29 2020 +0200

    Use to_string function
---
 src/client/client.cpp |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/src/client/client.cpp b/src/client/client.cpp
index dd69fe2..0a80107 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -93,14 +93,6 @@ Messages const & getMessages(string const &)
 
 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().
@@ -469,7 +461,7 @@ int h(vector<docstring> const &)
 
 
 docstring clientName =
-       from_ascii(itoa(::getppid()) + ">" + itoa(::getpid()));
+       from_ascii(to_string(::getppid()) + ">" + to_string(::getpid()));
 
 int n(vector<docstring> const & arg)
 {
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to