Skip to content

Commit 92b0cd4

Browse files
committed
Fix some comments
1 parent 63b4eca commit 92b0cd4

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

common/rdm/ResponderTagSetTest.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,12 @@ void TagSetTest::testTagSet() {
6565
OLA_ASSERT_EQ(string("foo"), set1.ToString());
6666
OLA_ASSERT_TRUE(set1.Contains(tag));
6767
OLA_ASSERT_FALSE(set1.Contains(tag2));
68+
// Add the same tag again (shouldn't change anything)
6869
set1.AddTag(tag);
69-
OLA_ASSERT_TRUE(set1.Contains(tag));
7070
OLA_ASSERT_EQ(1u, set1.Size());
71+
OLA_ASSERT_EQ(string("foo"), set1.ToString());
72+
OLA_ASSERT_TRUE(set1.Contains(tag));
73+
OLA_ASSERT_FALSE(set1.Contains(tag2));
7174

7275
// now test the packing
7376
unsigned int buffer_size2 = 32 + 1;

include/ola/rdm/ResponderTagSet.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ class TagSet {
164164
std::ostringstream str;
165165
std::set<std::string>::const_iterator iter;
166166
for (iter = m_tags.begin(); iter != m_tags.end(); ++iter) {
167-
if (iter != m_tags.begin())
167+
if (iter != m_tags.begin()) {
168168
str << ",";
169+
}
169170
str << *iter;
170171
}
171172
return str.str();

include/ola/rdm/UIDSet.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,9 @@ class UIDSet {
206206
std::ostringstream str;
207207
std::set<UID>::const_iterator iter;
208208
for (iter = m_uids.begin(); iter != m_uids.end(); ++iter) {
209-
if (iter != m_uids.begin())
209+
if (iter != m_uids.begin()) {
210210
str << ",";
211+
}
211212
str << *iter;
212213
}
213214
return str.str();

0 commit comments

Comments
 (0)