Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kconfig: qconf: confine {begin,end}Group to constructor and destructor

Call beginGroup() in the the constructor and endGroup() in the
destructor. This looks cleaner.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+7 -2
+6 -2
scripts/kconfig/qconf.cc
··· 37 37 ConfigSettings::ConfigSettings() 38 38 : QSettings("kernel.org", "qconf") 39 39 { 40 + beginGroup("/kconfig/qconf"); 41 + } 42 + 43 + ConfigSettings::~ConfigSettings() 44 + { 45 + endGroup(); 40 46 } 41 47 42 48 /** ··· 1835 1829 configApp = new QApplication(ac, av); 1836 1830 1837 1831 configSettings = new ConfigSettings(); 1838 - configSettings->beginGroup("/kconfig/qconf"); 1839 1832 v = new ConfigMainWindow(); 1840 1833 1841 1834 //zconfdump(stdout); ··· 1842 1837 v->show(); 1843 1838 configApp->exec(); 1844 1839 1845 - configSettings->endGroup(); 1846 1840 delete configSettings; 1847 1841 delete v; 1848 1842 delete configApp;
+1
scripts/kconfig/qconf.h
··· 24 24 class ConfigSettings : public QSettings { 25 25 public: 26 26 ConfigSettings(); 27 + ~ConfigSettings(void); 27 28 QList<int> readSizes(const QString& key, bool *ok); 28 29 bool writeSizes(const QString& key, const QList<int>& value); 29 30 };