Skip to content

Commit 6307744

Browse files
committed
Minor tweaks
1 parent 739e9c0 commit 6307744

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

src/dotrunner.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void DotRunner::addJob(const char *format, const char *output)
170170
m_jobs.emplace_back(format, output, args);
171171
}
172172

173-
QCString getBaseNameOfOutput(QCString const& output)
173+
QCString getBaseNameOfOutput(const QCString &output)
174174
{
175175
int index = output.findRev('.');
176176
if (index < 0) return output;
@@ -263,10 +263,10 @@ void DotRunnerQueue::enqueue(DotRunner *runner)
263263
DotRunner *DotRunnerQueue::dequeue()
264264
{
265265
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+
270270
DotRunner *result = m_queue.front();
271271
m_queue.pop();
272272
return result;
@@ -292,10 +292,10 @@ void DotWorkerThread::run()
292292
{
293293
runner->run();
294294
}
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);
301301
}

src/dotrunner.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,16 @@
2828
/** Helper class to run dot from doxygen from multiple threads. */
2929
class DotRunner
3030
{
31-
public:
3231
struct DotJob
3332
{
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) {}
3835
std::string format;
3936
std::string output;
4037
std::string args;
4138
};
4239

40+
public:
4341
/** Creates a runner for a dot \a file. */
4442
DotRunner(const std::string& absDotName, const std::string& md5Hash = std::string());
4543

0 commit comments

Comments
 (0)