]> git.lyx.org Git - lyx.git/blobdiff - src/client/client.cpp
Fix bug #12561
[lyx.git] / src / client / client.cpp
index 17338a6765a278ecfde15d81098cf9d17f6de9b5..0a80107009020a7a8e1d6dba4392cc23d4583817 100644 (file)
@@ -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().
@@ -348,10 +340,10 @@ void LyXDataSocket::writeln(string const & line)
        string linen(line + '\n');
        int size = linen.size();
        int written = ::write(fd_, linen.c_str(), size);
-       if (written < size) { // Allways mean end of connection.
+       if (written < size) { // Always mean end of connection.
                if ((written == -1) && (errno == EPIPE)) {
                        // The program will also receive a SIGPIPE
-                       // that must be catched
+                       // that must be caught
                        cerr << "lyxclient: connection closed while writing."
                             << endl;
                } else {
@@ -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)
 {
@@ -525,7 +517,7 @@ int a(vector<docstring> const & arg)
                     << endl;
                return -1;
        }
-       // -a supercedes LYXSOCKET environment variable
+       // -a supersedes LYXSOCKET environment variable
        serverAddress = arg[0];
        return 1;
 }
@@ -724,13 +716,3 @@ int main(int argc, char * argv[])
        return app.exec();
 }
 
-
-namespace boost {
-
-void assertion_failed(char const* a, char const* b, char const* c, long d)
-{
-       lyx::lyxerr << "Assertion failed: " << a << ' ' << b << ' ' << c << ' '
-               << d << '\n';
-}
-
-} // namespace boost