From 1f1d23622054ce204d9cf1c1a589c718321c667a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 30 May 2015 17:34:02 +0200 Subject: Telnet RC: reduce scope of m_welcome and m_prompt --- src/RemoteControl.cpp | 6 ++++-- src/RemoteControl.h | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/RemoteControl.cpp b/src/RemoteControl.cpp index 65da3b7..666f891 100644 --- a/src/RemoteControl.cpp +++ b/src/RemoteControl.cpp @@ -58,8 +58,10 @@ void RemoteControllerTelnet::restart_thread(long) void RemoteControllerTelnet::process(long) { - m_welcome = "ODR-DabMod Remote Control CLI\nWrite 'help' for help.\n**********\n"; - m_prompt = "> "; + std::string m_welcome = "ODR-DabMod Remote Control CLI\n" + "Write 'help' for help.\n" + "**********\n"; + std::string m_prompt = "> "; std::string in_message; size_t length; diff --git a/src/RemoteControl.h b/src/RemoteControl.h index 89a1583..15b35f6 100644 --- a/src/RemoteControl.h +++ b/src/RemoteControl.h @@ -289,9 +289,6 @@ class RemoteControllerTelnet : public BaseRemoteController { /* This controller commands the controllables in the cohort */ std::list m_cohort; - std::string m_welcome; - std::string m_prompt; - int m_port; }; -- cgit v1.2.3