aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-05-30 17:34:02 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-05-30 17:34:02 +0200
commit1f1d23622054ce204d9cf1c1a589c718321c667a (patch)
treee7b04395c7d87ec6afc3a62c0c00371a83b5d753 /src
parentd17c32c28ca3a3810fde93889bfbdc5133ab1bf3 (diff)
downloaddabmod-1f1d23622054ce204d9cf1c1a589c718321c667a.tar.gz
dabmod-1f1d23622054ce204d9cf1c1a589c718321c667a.tar.bz2
dabmod-1f1d23622054ce204d9cf1c1a589c718321c667a.zip
Telnet RC: reduce scope of m_welcome and m_prompt
Diffstat (limited to 'src')
-rw-r--r--src/RemoteControl.cpp6
-rw-r--r--src/RemoteControl.h3
2 files changed, 4 insertions, 5 deletions
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<RemoteControllable*> m_cohort;
- std::string m_welcome;
- std::string m_prompt;
-
int m_port;
};