From be95bc91fb8b0e115a31d9b3cbd63c9d234da6a9 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 27 Jul 2015 12:39:56 +0200 Subject: Don't generate deprecated code ::usrWriteConfig is deprecated, use ::usrSave as recommended by the documentation. REVIEW: 124467 --- src/kconfig_compiler/kconfig_compiler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kconfig_compiler/kconfig_compiler.cpp') 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) { -- cgit v1.2.1