Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Akonadi
Commits
72bd55f8
Commit
72bd55f8
authored
Sep 05, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initialize value on header
parent
c19cde5d
Pipeline
#33169
passed with stage
in 49 minutes and 46 seconds
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
17 additions
and
32 deletions
+17
-32
src/agentbase/preprocessorbase_p.cpp
src/agentbase/preprocessorbase_p.cpp
+0
-2
src/agentbase/preprocessorbase_p.h
src/agentbase/preprocessorbase_p.h
+2
-2
src/agentbase/recursivemover.cpp
src/agentbase/recursivemover.cpp
+0
-2
src/agentbase/recursivemover_p.h
src/agentbase/recursivemover_p.h
+3
-3
src/agentbase/resourcescheduler.cpp
src/agentbase/resourcescheduler.cpp
+0
-2
src/agentbase/resourcescheduler_p.h
src/agentbase/resourcescheduler_p.h
+2
-2
src/agentserver/agentserver.cpp
src/agentserver/agentserver.cpp
+0
-2
src/agentserver/agentserver.h
src/agentserver/agentserver.h
+2
-2
src/agentserver/agentthread.cpp
src/agentserver/agentthread.cpp
+0
-1
src/agentserver/agentthread.h
src/agentserver/agentthread.h
+2
-2
src/akonadicontrol/agenttype.cpp
src/akonadicontrol/agenttype.cpp
+0
-2
src/akonadicontrol/agenttype.h
src/akonadicontrol/agenttype.h
+2
-2
src/akonadicontrol/processcontrol.cpp
src/akonadicontrol/processcontrol.cpp
+0
-4
src/akonadicontrol/processcontrol.h
src/akonadicontrol/processcontrol.h
+4
-4
No files found.
src/agentbase/preprocessorbase_p.cpp
View file @
72bd55f8
...
...
@@ -18,8 +18,6 @@ using namespace Akonadi;
PreprocessorBasePrivate
::
PreprocessorBasePrivate
(
PreprocessorBase
*
parent
)
:
AgentBasePrivate
(
parent
)
,
mInDelayedProcessing
(
false
)
,
mDelayedProcessingItemId
(
0
)
{
Q_Q
(
PreprocessorBase
);
...
...
src/agentbase/preprocessorbase_p.h
View file @
72bd55f8
...
...
@@ -35,8 +35,8 @@ private Q_SLOTS:
void
itemFetched
(
KJob
*
job
);
public:
bool
mInDelayedProcessing
;
qlonglong
mDelayedProcessingItemId
;
bool
mInDelayedProcessing
=
false
;
qlonglong
mDelayedProcessingItemId
=
0
;
ItemFetchScope
mFetchScope
;
Q_DECLARE_PUBLIC
(
PreprocessorBase
)
...
...
src/agentbase/recursivemover.cpp
View file @
72bd55f8
...
...
@@ -16,8 +16,6 @@ RecursiveMover::RecursiveMover(AgentBasePrivate *parent)
:
KCompositeJob
(
parent
)
,
m_agentBase
(
parent
)
,
m_currentAction
(
None
)
,
m_runningJobs
(
0
)
,
m_pendingReplay
(
false
)
{
}
...
...
src/agentbase/recursivemover_p.h
View file @
72bd55f8
...
...
@@ -51,7 +51,7 @@ private Q_SLOTS:
void
itemFetchResult
(
KJob
*
job
);
private:
AgentBasePrivate
*
m_agentBase
=
nullptr
;
AgentBasePrivate
*
const
m_agentBase
;
Collection
m_movedCollection
;
/// sorted queue of collections still to be processed
Collection
::
List
m_pendingCollections
;
...
...
@@ -68,8 +68,8 @@ private:
AddItem
}
m_currentAction
;
int
m_runningJobs
;
bool
m_pendingReplay
;
int
m_runningJobs
=
0
;
bool
m_pendingReplay
=
false
;
};
}
...
...
src/agentbase/resourcescheduler.cpp
View file @
72bd55f8
...
...
@@ -25,8 +25,6 @@ static QDBusAbstractInterface *s_resourcetracker = nullptr;
ResourceScheduler
::
ResourceScheduler
(
QObject
*
parent
)
:
QObject
(
parent
)
,
mCurrentTasksQueue
(
-
1
)
,
mOnline
(
false
)
{
}
...
...
src/agentbase/resourcescheduler_p.h
View file @
72bd55f8
...
...
@@ -290,8 +290,8 @@ private:
TaskList
mTaskList
[
NQueueCount
];
Task
mCurrentTask
;
int
mCurrentTasksQueue
;
// queue mCurrentTask came from
bool
mOnline
;
int
mCurrentTasksQueue
=
-
1
;
// queue mCurrentTask came from
bool
mOnline
=
false
;
};
QDebug
operator
<<
(
QDebug
,
const
ResourceScheduler
::
Task
&
task
);
...
...
src/agentserver/agentserver.cpp
View file @
72bd55f8
...
...
@@ -19,8 +19,6 @@ using namespace Akonadi;
AgentServer
::
AgentServer
(
QObject
*
parent
)
:
QObject
(
parent
)
,
m_processingConfigureRequests
(
false
)
,
m_quiting
(
false
)
{
QDBusConnection
::
sessionBus
().
registerObject
(
QStringLiteral
(
AKONADI_DBUS_AGENTSERVER_PATH
),
this
,
QDBusConnection
::
ExportScriptableSlots
);
...
...
src/agentserver/agentserver.h
View file @
72bd55f8
...
...
@@ -43,8 +43,8 @@ private:
QHash
<
QString
,
AgentThread
*>
m_agents
;
QQueue
<
ConfigureInfo
>
m_configureQueue
;
AgentPluginLoader
m_agentLoader
;
bool
m_processingConfigureRequests
;
bool
m_quiting
;
bool
m_processingConfigureRequests
=
false
;
bool
m_quiting
=
false
;
};
}
...
...
src/agentserver/agentthread.cpp
View file @
72bd55f8
...
...
@@ -18,7 +18,6 @@ AgentThread::AgentThread(const QString &identifier, QObject *factory, QObject *p
:
QThread
(
parent
)
,
m_identifier
(
identifier
)
,
m_factory
(
factory
)
,
m_instance
(
nullptr
)
{
}
...
...
src/agentserver/agentthread.h
View file @
72bd55f8
...
...
@@ -40,8 +40,8 @@ protected:
void
run
()
override
;
private:
QString
m_identifier
;
QObject
*
m_factory
=
nullptr
;
const
QString
m_identifier
;
QObject
*
const
m_factory
;
QObject
*
m_instance
=
nullptr
;
};
...
...
src/akonadicontrol/agenttype.cpp
View file @
72bd55f8
...
...
@@ -23,8 +23,6 @@ const QLatin1String AgentType::CapabilityPreprocessor = QLatin1String(AKONADI_AG
const
QLatin1String
AgentType
::
CapabilitySearch
=
QLatin1String
(
AKONADI_AGENT_CAPABILITY_SEARCH
);
AgentType
::
AgentType
()
:
instanceCounter
(
0
)
,
launchMethod
(
Process
)
{
}
...
...
src/akonadicontrol/agenttype.h
View file @
72bd55f8
...
...
@@ -37,8 +37,8 @@ public:
QStringList
capabilities
;
QString
exec
;
QVariantMap
custom
;
uint
instanceCounter
;
LaunchMethod
launchMethod
;
uint
instanceCounter
=
0
;
LaunchMethod
launchMethod
=
Process
;
static
const
QLatin1String
CapabilityUnique
;
static
const
QLatin1String
CapabilityResource
;
...
...
src/akonadicontrol/processcontrol.cpp
View file @
72bd55f8
...
...
@@ -27,10 +27,6 @@ static const int s_maxCrashCount = 2;
ProcessControl
::
ProcessControl
(
QObject
*
parent
)
:
QObject
(
parent
)
,
mPolicy
(
RestartOnCrash
)
,
mFailedToStart
(
false
)
,
mCrashCount
(
0
)
,
mRestartOnceOnExit
(
false
)
,
mShutdownTimeout
(
1s
)
{
connect
(
&
mProcess
,
&
QProcess
::
errorOccurred
,
...
...
src/akonadicontrol/processcontrol.h
View file @
72bd55f8
...
...
@@ -119,10 +119,10 @@ private:
QProcess
mProcess
;
QString
mApplication
;
QStringList
mArguments
;
CrashPolicy
mPolicy
;
bool
mFailedToStart
;
int
mCrashCount
;
bool
mRestartOnceOnExit
;
CrashPolicy
mPolicy
=
RestartOnCrash
;
bool
mFailedToStart
=
false
;
int
mCrashCount
=
0
;
bool
mRestartOnceOnExit
=
false
;
std
::
chrono
::
milliseconds
mShutdownTimeout
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment