Changeset 11071 for code/trunk/src/orxonox/chat
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/chat/ChatHistory.cc
r10624 r11071 30 30 #include "core/singleton/ScopedSingletonIncludes.h" 31 31 #include "core/ConfigurablePaths.h" 32 #include "core/CoreIncludes.h" 32 33 33 34 #ifndef CHATTEST … … 159 160 void ChatHistory::debug_printhist() 160 161 { 161 /* create deque iterator */162 std::deque<std::string>::iterator it;163 164 162 /* output all the strings */ 165 for( it = this->hist_buffer.begin(); it != this->hist_buffer.end(); 166 ++it ) 167 orxout(debug_output) << *it << endl; 163 for( const std::string& hist : this->hist_buffer ) 164 orxout(debug_output) << hist << endl; 168 165 169 166 /* output size */ -
code/trunk/src/orxonox/chat/ChatHistory.h
r10624 r11071 82 82 * \param senderID Identification number of the sender 83 83 */ 84 virtual void incomingChat(const std::string& message, const std::string& name) ;84 virtual void incomingChat(const std::string& message, const std::string& name) override; 85 85 86 86 /** Synchronize logfile onto the hard drive -
code/trunk/src/orxonox/chat/ChatInputHandler.cc
r10624 r11071 79 79 this->inpbuf = new InputBuffer(); 80 80 this->disp_offset = 0; 81 assert( this->inpbuf != NULL);81 assert( this->inpbuf != nullptr ); 82 82 83 83 /* generate chatbox ui and chatbox-inputonly ui */ -
code/trunk/src/orxonox/chat/ChatInputHandler.h
r9675 r11071 125 125 * history window of the full chat window) 126 126 */ 127 v oid incomingChat(const std::string& message, const std::string& name);127 virtual void incomingChat(const std::string& message, const std::string& name) override; 128 128 129 129 /** \param full true means show full chat window with history, -
code/trunk/src/orxonox/chat/ChatManager.cc
r10624 r11071 107 107 108 108 // notify all listeners 109 for ( ObjectList<ChatListener>::iterator it = ObjectList<ChatListener>::begin(); it != ObjectList<ChatListener>::end(); ++it)110 it->incomingChat(text, name);109 for (ChatListener* listener : ObjectList<ChatListener>()) 110 listener->incomingChat(text, name); 111 111 } 112 112 -
code/trunk/src/orxonox/chat/ChatManager.h
r8858 r11071 47 47 public: 48 48 ChatManager(); 49 virtual ~ChatManager() {}49 virtual ~ChatManager() = default; 50 50 51 51 static void message(const std::string& message, unsigned int targetID = NETWORK_PEER_ID_BROADCAST); … … 53 53 54 54 protected: 55 ChatManager(const ChatManager&); 55 // non-copyable: 56 ChatManager(const ChatManager&) = delete; 57 ChatManager& operator=(const ChatManager&) = delete; 56 58 57 virtual void incomingChat(const std::string& message, unsigned int sourceID) ;59 virtual void incomingChat(const std::string& message, unsigned int sourceID) override; 58 60 59 61 static ChatManager* singletonPtr_s;
Note: See TracChangeset
for help on using the changeset viewer.