refactor: static -> anonymous namespace
This commit is contained in:
parent
644e70679b
commit
dd15b1d80e
1 changed files with 5 additions and 1 deletions
|
|
@ -7,12 +7,16 @@
|
||||||
|
|
||||||
namespace caelestia::config {
|
namespace caelestia::config {
|
||||||
|
|
||||||
static const AppearanceConfig* resolveAppearance(ConfigScope* scope) {
|
namespace {
|
||||||
|
|
||||||
|
const AppearanceConfig* resolveAppearance(ConfigScope* scope) {
|
||||||
if (scope && scope->config())
|
if (scope && scope->config())
|
||||||
return scope->config()->appearance();
|
return scope->config()->appearance();
|
||||||
return GlobalConfig::instance()->appearance();
|
return GlobalConfig::instance()->appearance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
Tokens::Tokens(ConfigScope* scope, QObject* parent)
|
Tokens::Tokens(ConfigScope* scope, QObject* parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
, m_scope(scope)
|
, m_scope(scope)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue