diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-07-27 12:39:56 +0200 | 
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-07-27 12:39:56 +0200 | 
| commit | be95bc91fb8b0e115a31d9b3cbd63c9d234da6a9 (patch) | |
| tree | a80692b11595ea3d26258e3cfcecec7d1f4139e8 /src/kconfig_compiler | |
| parent | 297b6188d01064fb2803818c1f93d2d7bdfbccb7 (diff) | |
| download | kconfig-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.cpp | 6 | 
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) { | 
