From 0ae2bb2fae55c48b885546ec0791b6730b5f7215 Mon Sep 17 00:00:00 2001 From: Marc Bouvier Date: Tue, 3 Sep 2013 05:22:48 -0500 Subject: [PATCH] [Feature #881] Code Formatting Code formatted to the OpenMW policy. --- apps/opencs/editor.cpp | 16 ++++++++-------- apps/opencs/editor.hpp | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/opencs/editor.cpp b/apps/opencs/editor.cpp index 79dc368b4c..85303fb266 100644 --- a/apps/opencs/editor.cpp +++ b/apps/opencs/editor.cpp @@ -10,7 +10,7 @@ CS::Editor::Editor() : mViewManager (mDocumentManager) { - ipcServerName = "IPCServer"; + mIpcServerName = "IPCServer"; connect (&mViewManager, SIGNAL (newDocumentRequest ()), this, SLOT (createDocument ())); connect (&mViewManager, SIGNAL (loadDocumentRequest ()), this, SLOT (loadDocument ())); @@ -128,23 +128,23 @@ void CS::Editor::showStartup() bool CS::Editor::makeIPCServer() { - server = new QLocalServer(this); + mServer = new QLocalServer(this); - if(server->listen(ipcServerName)) + if(mServer->listen(mIpcServerName)) { - connect(server, SIGNAL(newConnection()), this, SLOT(showStartup())); + connect(mServer, SIGNAL(newConnection()), this, SLOT(showStartup())); return true; } - server->close(); + mServer->close(); return false; } void CS::Editor::connectToIPCServer() { - clientToServerSocket = new QLocalSocket(this); - clientToServerSocket->connectToServer(ipcServerName); - clientToServerSocket->close(); + mClientSocket = new QLocalSocket(this); + mClientSocket->connectToServer(mIpcServerName); + mClientSocket->close(); } int CS::Editor::run() diff --git a/apps/opencs/editor.hpp b/apps/opencs/editor.hpp index 258d5b18a7..80336d66f8 100644 --- a/apps/opencs/editor.hpp +++ b/apps/opencs/editor.hpp @@ -57,9 +57,9 @@ namespace CS private: - QString ipcServerName; - QLocalServer *server; - QLocalSocket *clientToServerSocket; + QString mIpcServerName; + QLocalServer *mServer; + QLocalSocket *mClientSocket; }; }