Make const

This commit is contained in:
Jonas Kvinge 2021-08-25 02:29:05 +02:00
parent 4b9551d27f
commit 6e0a5fb5c6
4 changed files with 4 additions and 4 deletions

View File

@ -169,7 +169,7 @@ void SingleApplicationPrivate::genBlockServerName() {
}
void SingleApplicationPrivate::initializeMemoryBlock() {
void SingleApplicationPrivate::initializeMemoryBlock() const {
InstancesInfo *inst = static_cast<InstancesInfo*>(memory_->data());
inst->primary = false;

View File

@ -82,7 +82,7 @@ class SingleApplicationPrivate : public QObject {
static QString getUsername();
void genBlockServerName();
void initializeMemoryBlock();
void initializeMemoryBlock() const;
void startPrimary();
void startSecondary();
bool connectToPrimary(const int timeout, const ConnectionType connectionType);

View File

@ -169,7 +169,7 @@ void SingleCoreApplicationPrivate::genBlockServerName() {
}
void SingleCoreApplicationPrivate::initializeMemoryBlock() {
void SingleCoreApplicationPrivate::initializeMemoryBlock() const {
InstancesInfo *inst = static_cast<InstancesInfo*>(memory_->data());
inst->primary = false;

View File

@ -82,7 +82,7 @@ class SingleCoreApplicationPrivate : public QObject {
static QString getUsername();
void genBlockServerName();
void initializeMemoryBlock();
void initializeMemoryBlock() const;
void startPrimary();
void startSecondary();
bool connectToPrimary(const int timeout, const ConnectionType connectionType);