diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-08-24 11:32:53 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-08-24 11:32:53 -0300 |
commit | 10c15993f817ae2e60afdb4220e841e5104a0e0d (patch) | |
tree | 521d9c44d6fb9f8988eb44db5c2fc2decec1b6a3 /cppgenerator.cpp | |
parent | 4fca5b868e8b3d982dfa2ceb95806b2a5b2bb639 (diff) |
Proper initialize m_disableNamedArgs variable.
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r-- | cppgenerator.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index ae1f625a8..a930bffee 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -1419,3 +1419,15 @@ void CppGenerator::writeGlobalFunctions() s << "}\n"; } +QMap<QString, QString> CppGenerator::options() const +{ + QMap<QString, QString> res; + res.insert("disable-named-arg", "Disable Python names arguments."); + return res; +} + +bool CppGenerator::prepareGeneration(const QMap<QString, QString>& args) +{ + BoostPythonGenerator::prepareGeneration(args); + m_disableNamedArgs = args.contains("disable-named-arg"); +} |