Commit 7928253e authored by Alexander Potashev's avatar Alexander Potashev

Fix clang-tidy warnings

parent 9488ead8
......@@ -35,7 +35,7 @@
static const QByteArray eventAppName = QByteArray("ktimetracker");
Task::Task(const QString& taskName, const QString& taskDescription, long minutes, long sessionTime,
DesktopList desktops, ProjectModel *projectModel, Task *parentTask)
const DesktopList& desktops, ProjectModel *projectModel, Task *parentTask)
: TasksModelItem(projectModel->tasksModel(), parentTask)
, m_projectModel(projectModel)
{
......@@ -82,7 +82,8 @@ int Task::depth()
}
void Task::init(
const QString& taskName, const QString& taskDescription, long minutes, long sessionTime, QString sessionStartTiMe,
const QString& taskName, const QString& taskDescription, long minutes, long sessionTime,
const QString& sessionStartTiMe,
const DesktopList& desktops, int percent_complete, int priority)
{
m_isRunning = false;
......
......@@ -55,7 +55,7 @@ public:
};
Task(const QString& taskname, const QString& taskdescription, long minutes, long sessionTime,
DesktopList desktops, ProjectModel *projectModel, Task* parentTask);
const DesktopList& desktops, ProjectModel *projectModel, Task* parentTask);
Task(const KCalendarCore::Todo::Ptr &incident, ProjectModel *projectModel);
/* destructor */
......@@ -321,7 +321,8 @@ protected:
private:
/** initialize a task */
void init(
const QString& taskname, const QString& taskdescription, long minutes, long sessionTime, QString sessionStartTiMe,
const QString& taskname, const QString& taskdescription, long minutes, long sessionTime,
const QString& sessionStartTiMe,
const DesktopList& desktops, int percent_complete, int priority);
bool m_isRunning;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment