Commit bb752051 authored by Volker Krause's avatar Volker Krause
Browse files

Make constants actually const.

parent b14a9316
......@@ -52,9 +52,9 @@
using Akonadi::ProcessControl;
#if defined(Q_WS_MAEMO_5)
static bool enableAgentServerDefault = true;
static const bool enableAgentServerDefault = true;
#else
static bool enableAgentServerDefault = false;
static const bool enableAgentServerDefault = false;
#endif
AgentManager::AgentManager(QObject *parent)
......
......@@ -30,11 +30,11 @@
using namespace Akonadi;
QLatin1String AgentType::CapabilityUnique = QLatin1String(AKONADI_AGENT_CAPABILITY_UNIQUE);
QLatin1String AgentType::CapabilityResource = QLatin1String(AKONADI_AGENT_CAPABILITY_RESOURCE);
QLatin1String AgentType::CapabilityAutostart = QLatin1String(AKONADI_AGENT_CAPABILITY_AUTOSTART);
QLatin1String AgentType::CapabilityPreprocessor = QLatin1String(AKONADI_AGENT_CAPABILITY_PREPROCESSOR);
QLatin1String AgentType::CapabilitySearch = QLatin1String(AKONADI_AGENT_CAPABILITY_SEARCH);
const QLatin1String AgentType::CapabilityUnique = QLatin1String(AKONADI_AGENT_CAPABILITY_UNIQUE);
const QLatin1String AgentType::CapabilityResource = QLatin1String(AKONADI_AGENT_CAPABILITY_RESOURCE);
const QLatin1String AgentType::CapabilityAutostart = QLatin1String(AKONADI_AGENT_CAPABILITY_AUTOSTART);
const QLatin1String AgentType::CapabilityPreprocessor = QLatin1String(AKONADI_AGENT_CAPABILITY_PREPROCESSOR);
const QLatin1String AgentType::CapabilitySearch = QLatin1String(AKONADI_AGENT_CAPABILITY_SEARCH);
AgentType::AgentType()
: instanceCounter(0)
......
......@@ -57,11 +57,11 @@ public:
uint instanceCounter;
LaunchMethod launchMethod;
static QLatin1String CapabilityUnique;
static QLatin1String CapabilityResource;
static QLatin1String CapabilityAutostart;
static QLatin1String CapabilityPreprocessor;
static QLatin1String CapabilitySearch;
static const QLatin1String CapabilityUnique;
static const QLatin1String CapabilityResource;
static const QLatin1String CapabilityAutostart;
static const QLatin1String CapabilityPreprocessor;
static const QLatin1String CapabilitySearch;
private:
QString readString(const QSettings &file, const QString &key);
......
......@@ -166,7 +166,7 @@ qint64 ImapStreamParser::remainingLiteralSize()
QByteArray ImapStreamParser::readLiteralPart()
{
static qint64 maxLiteralPartSize = 4096;
static const qint64 maxLiteralPartSize = 4096;
int size = qMin(maxLiteralPartSize, m_literalSize);
if (!waitForMoreData(m_data.length() < m_position + size)) {
......
......@@ -25,8 +25,8 @@
using namespace Akonadi::Server;
static int MINIMUM_AUTOSYNC_INTERVAL = 5; // minutes
static int MINIMUM_COLTREESYNC_INTERVAL = 5; // minutes
static const int MINIMUM_AUTOSYNC_INTERVAL = 5; // minutes
static const int MINIMUM_COLTREESYNC_INTERVAL = 5; // minutes
IntervalCheck::IntervalCheck(QObject *parent)
: CollectionScheduler(parent)
......
......@@ -22,7 +22,7 @@
using namespace Akonadi::Server;
static const char *s_resultCodeStrings[] = {
static const char *const s_resultCodeStrings[] = {
"OK", "NO", "BAD", "BYE", ""
};
......
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