Skip to content

Commit 3566c28

Browse files
authored
Merge pull request #2012 from peternewman/0.10-clang-latest
Fix error: template-id not allowed for constructor and some Doxygen errors
2 parents 51b3a74 + ede6472 commit 3566c28

File tree

12 files changed

+19
-7
lines changed

12 files changed

+19
-7
lines changed

common/io/SelectServerTest.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ class SelectServerTest: public CppUnit::TestFixture {
122122

123123
void Terminate() {
124124
OLA_DEBUG << "Terminate called";
125-
if (m_ss) { m_ss->Terminate(); }
125+
if (m_ss) {
126+
m_ss->Terminate();
127+
}
126128
}
127129

128130
void SingleIncrementTimeout() {
@@ -147,8 +149,9 @@ class SelectServerTest: public CppUnit::TestFixture {
147149
void NullHandler() {}
148150

149151
bool IncrementTimeout() {
150-
if (m_ss && m_ss->IsRunning())
152+
if (m_ss && m_ss->IsRunning()) {
151153
m_timeout_counter++;
154+
}
152155
return true;
153156
}
154157

common/testing/GenericTester.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <cppunit/CompilerOutputter.h>
2626
#include <cppunit/extensions/TestFactoryRegistry.h>
2727
#include <cppunit/ui/text/TestRunner.h>
28+
#include <iostream>
2829
#include <string>
2930

3031
#include "ola/base/Env.h"

doxygen/examples/callback_client_transmit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include <ola/client/ClientWrapper.h>
2323
#include <ola/Callback.h>
2424

25+
#include <iostream>
26+
2527
using std::cout;
2628
using std::endl;
2729

doxygen/examples/client_disconnect.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include <ola/client/ClientWrapper.h>
2424
#include <ola/Callback.h>
2525

26+
#include <iostream>
27+
2628
using std::cout;
2729
using std::endl;
2830

doxygen/examples/client_thread.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <ola/thread/Thread.h>
2323
#include <ola/Callback.h>
2424

25+
#include <iostream>
2526
#include <vector>
2627

2728
#ifdef _WIN32

doxygen/examples/fetch_plugins.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <ola/client/ClientWrapper.h>
2222
#include <ola/Callback.h>
2323

24+
#include <iostream>
2425
#include <vector>
2526

2627
using std::cout;

doxygen/examples/legacy_callback_client_transmit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include <ola/OlaClientWrapper.h>
2323
#include <ola/Callback.h>
2424

25+
#include <iostream>
26+
2527
using std::cout;
2628
using std::endl;
2729

examples/ola-dmxconsole.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#include <ola/client/OlaClient.h>
5757
#include <ola/io/SelectServer.h>
5858

59+
#include <iostream>
5960
#include <string>
6061

6162
using ola::client::OlaClient;

include/ola/thread/FuturePrivate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class FutureImpl {
8989
bool m_is_set;
9090
T m_value;
9191

92-
DISALLOW_COPY_AND_ASSIGN(FutureImpl<T>);
92+
DISALLOW_COPY_AND_ASSIGN(FutureImpl);
9393
};
9494

9595
/**
@@ -152,7 +152,7 @@ class FutureImpl<void> {
152152
unsigned int m_ref_count;
153153
bool m_is_set;
154154

155-
DISALLOW_COPY_AND_ASSIGN(FutureImpl<void>);
155+
DISALLOW_COPY_AND_ASSIGN(FutureImpl);
156156
};
157157

158158
} // namespace thread

libs/usb/JaRuleWidgetPort.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <ola/thread/Mutex.h>
2929
#include <ola/util/Utils.h>
3030

31+
#include <iostream>
3132
#include <memory>
3233
#include <string>
3334
#include <utility>

0 commit comments

Comments
 (0)