From f301196f61a94b0206a6ee4fe49c2655601fb8ab Mon Sep 17 00:00:00 2001 From: Shane Ringrose Date: Sat, 20 Jun 2026 22:26:32 +1200 Subject: [PATCH] Rename static locals to match original variable names per review Reviewer requested configdir/datadir instead of cached for consistency with the surrounding code style. Co-Authored-By: Claude Sonnet 4.6 --- sources/qetapp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/qetapp.cpp b/sources/qetapp.cpp index efe529d34..3b95551e5 100644 --- a/sources/qetapp.cpp +++ b/sources/qetapp.cpp @@ -889,12 +889,12 @@ QString QETApp::configDir() #endif // C++11 static-local init runs exactly once across all threads — safe to // call from QtConcurrent background threads (QStandardPaths is not). - static const QString cached = []() { + static const QString configdir = []() { QString d = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation); while (d.endsWith('/')) d.chop(1); return d; }(); - return cached; + return configdir; } /** @@ -916,12 +916,12 @@ QString QETApp::dataDir() #endif // C++11 static-local init runs exactly once across all threads — safe to // call from QtConcurrent background threads (QStandardPaths is not). - static const QString cached = []() { + static const QString datadir = []() { QString d = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); while (d.endsWith('/')) d.chop(1); return d; }(); - return cached; + return datadir; } /**