[LyX/master] Use to_string function

Yuriy Skalko yuriy.skalko at gmail.com
Fri Nov 27 09:47:44 UTC 2020


commit 816512879d724eaaaa2902019fee8585bead3064
Author: Yuriy Skalko <yuriy.skalko at gmail.com>
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)
 {


More information about the lyx-cvs mailing list