File tree Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ void DotRunner::addJob(const char *format, const char *output)
170
170
m_jobs.emplace_back (format, output, args);
171
171
}
172
172
173
- QCString getBaseNameOfOutput (QCString const & output)
173
+ QCString getBaseNameOfOutput (const QCString & output)
174
174
{
175
175
int index = output.findRev (' .' );
176
176
if (index < 0 ) return output;
@@ -263,10 +263,10 @@ void DotRunnerQueue::enqueue(DotRunner *runner)
263
263
DotRunner *DotRunnerQueue::dequeue ()
264
264
{
265
265
std::unique_lock<std::mutex> locker (m_mutex);
266
-
267
- // wait until something is added to the queue
268
- m_bufferNotEmpty.wait (locker, [this ]() {return !m_queue.empty (); });
269
-
266
+
267
+ // wait until something is added to the queue
268
+ m_bufferNotEmpty.wait (locker, [this ]() { return !m_queue.empty (); });
269
+
270
270
DotRunner *result = m_queue.front ();
271
271
m_queue.pop ();
272
272
return result;
@@ -292,10 +292,10 @@ void DotWorkerThread::run()
292
292
{
293
293
runner->run ();
294
294
}
295
- }
296
-
297
- void DotWorkerThread::start ()
298
- {
299
- assert (!m_thread);
300
- m_thread = std::make_unique<std::thread>(&DotWorkerThread::run, this );
295
+ }
296
+
297
+ void DotWorkerThread::start ()
298
+ {
299
+ assert (!m_thread);
300
+ m_thread = std::make_unique<std::thread>(&DotWorkerThread::run, this );
301
301
}
Original file line number Diff line number Diff line change 28
28
/* * Helper class to run dot from doxygen from multiple threads. */
29
29
class DotRunner
30
30
{
31
- public:
32
31
struct DotJob
33
32
{
34
- DotJob (std::string format,
35
- std::string output,
36
- std::string args)
37
- : format(std::move(format)), output(std::move(output)), args(std::move(args)) {}
33
+ DotJob (std::string f, std::string o, std::string a)
34
+ : format(f), output(o), args(a) {}
38
35
std::string format;
39
36
std::string output;
40
37
std::string args;
41
38
};
42
39
40
+ public:
43
41
/* * Creates a runner for a dot \a file. */
44
42
DotRunner (const std::string& absDotName, const std::string& md5Hash = std::string());
45
43
You can’t perform that action at this time.
0 commit comments