Make const
This commit is contained in:
parent
4b9551d27f
commit
6e0a5fb5c6
|
@ -169,7 +169,7 @@ void SingleApplicationPrivate::genBlockServerName() {
|
|||
|
||||
}
|
||||
|
||||
void SingleApplicationPrivate::initializeMemoryBlock() {
|
||||
void SingleApplicationPrivate::initializeMemoryBlock() const {
|
||||
|
||||
InstancesInfo *inst = static_cast<InstancesInfo*>(memory_->data());
|
||||
inst->primary = false;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -169,7 +169,7 @@ void SingleCoreApplicationPrivate::genBlockServerName() {
|
|||
|
||||
}
|
||||
|
||||
void SingleCoreApplicationPrivate::initializeMemoryBlock() {
|
||||
void SingleCoreApplicationPrivate::initializeMemoryBlock() const {
|
||||
|
||||
InstancesInfo *inst = static_cast<InstancesInfo*>(memory_->data());
|
||||
inst->primary = false;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue