Skip to content

Commit

Permalink
chore: Adapt to compile for qt6
Browse files Browse the repository at this point in the history
  Adapt to compile.

Issue: linuxdeepin/dtk#86
  • Loading branch information
18202781743 committed May 29, 2023
1 parent 1897624 commit 55241f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dconfig-center/dde-dconfig-daemon/dconfigresource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ void DSGConfigResource::doGlobalValueChanged(const QString &key, const ResourceK
*/
void DSGConfigResource::repareCache(DConfigCache *cache, DConfigMeta *oldMeta, DConfigMeta *newMeta)
{
const auto &newKeyList = newMeta->keyList().toSet();
const auto &oldKeyList = oldMeta->keyList().toSet();
const QSet<QString> &newKeyList = {newMeta->keyList().begin(), newMeta->keyList().end()};
const QSet<QString> &oldKeyList = {oldMeta->keyList().begin(), oldMeta->keyList().end()};

// 配置项已经被移除,oldMeta - newMeta,移除cache值
const auto subtractKeys = oldKeyList - (newKeyList);
Expand Down
2 changes: 1 addition & 1 deletion dconfig-center/dde-dconfig-daemon/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main(int argc, char *argv[])
QCommandLineOption localPrefixOption("p", QCoreApplication::translate("main", "working prefix directory."), "prefix", QString());
parser.addOption(localPrefixOption);

QCommandLineOption exitOption("e", QCoreApplication::translate("main", "exit application when all resource released."), "exit", QString(true));
QCommandLineOption exitOption("e", QCoreApplication::translate("main", "exit application when all resource released."), "exit", QString::number(true));
parser.addOption(exitOption);

parser.process(a);
Expand Down

0 comments on commit 55241f9

Please sign in to comment.