From ccb600a2f48f187f9dc231e64c4210ab8fde89bb Mon Sep 17 00:00:00 2001 From: SnrNotHere16 Date: Tue, 27 Dec 2016 23:46:18 -0800 Subject: [PATCH] Changed identifier string strError to string Error This is my attempt to resolve the Remove Hungarian Notation issue. I changed the identifier of variable string strError to string Error. I also changed all the instances of strError to Error. Thank you. --- remote-process/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/remote-process/main.cpp b/remote-process/main.cpp index 3ebaa86b3..b3d03a415 100644 --- a/remote-process/main.cpp +++ b/remote-process/main.cpp @@ -42,19 +42,19 @@ using namespace std; bool sendAndDisplayCommand(asio::ip::tcp::socket &socket, CRequestMessage &requestMessage) { - string strError; + string Error; - if (requestMessage.serialize(Socket(socket), true, strError) != CRequestMessage::success) { + if (requestMessage.serialize(Socket(socket), true, Error) != CRequestMessage::success) { - cerr << "Unable to send command to target: " << strError << endl; + cerr << "Unable to send command to target: " << Error << endl; return false; } ///// Get answer CAnswerMessage answerMessage; - if (answerMessage.serialize(Socket(socket), false, strError) != CRequestMessage::success) { + if (answerMessage.serialize(Socket(socket), false, Error) != CRequestMessage::success) { - cerr << "Unable to received answer from target: " << strError << endl; + cerr << "Unable to received answer from target: " << Error << endl; return false; }