aboutsummaryrefslogtreecommitdiff
path: root/src/kconfig_compiler
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-07-27 12:39:56 +0200
committerAleix Pol <aleixpol@kde.org>2015-07-27 12:39:56 +0200
commitbe95bc91fb8b0e115a31d9b3cbd63c9d234da6a9 (patch)
treea80692b11595ea3d26258e3cfcecec7d1f4139e8 /src/kconfig_compiler
parent297b6188d01064fb2803818c1f93d2d7bdfbccb7 (diff)
downloadkconfig-be95bc91fb8b0e115a31d9b3cbd63c9d234da6a9.tar.gz
kconfig-be95bc91fb8b0e115a31d9b3cbd63c9d234da6a9.tar.bz2
Don't generate deprecated code
::usrWriteConfig is deprecated, use ::usrSave as recommended by the documentation. REVIEW: 124467
Diffstat (limited to 'src/kconfig_compiler')
-rw-r--r--src/kconfig_compiler/kconfig_compiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp
index 246cc92a..fc3571c0 100644
--- a/src/kconfig_compiler/kconfig_compiler.cpp
+++ b/src/kconfig_compiler/kconfig_compiler.cpp
@@ -2125,7 +2125,7 @@ int main(int argc, char **argv)
}
if (hasNonModifySignals) {
- h << " virtual bool usrWriteConfig();" << endl;
+ h << " virtual bool usrSave();" << endl;
}
// Member variables
@@ -2605,9 +2605,9 @@ int main(int argc, char **argv)
cpp << "}" << endl << endl;
if (hasNonModifySignals) {
- cpp << "bool " << cfg.className << "::" << "usrWriteConfig()" << endl;
+ cpp << "bool " << cfg.className << "::" << "usrSave()" << endl;
cpp << "{" << endl;
- cpp << " const bool res = " << cfg.inherits << "::usrWriteConfig();" << endl;
+ cpp << " const bool res = " << cfg.inherits << "::usrSave();" << endl;
cpp << " if (!res) return false;" << endl << endl;
Q_FOREACH (const Signal &signal, signalList) {
if (signal.modify) {