Browse Source

[trac755] Use function instead of class

This will return the ID directly, not hold it as a class, which will
have smaller memory footprint.
Michal 'vorner' Vaner 14 years ago
parent
commit
5f20e1ed08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/log/compiler/message.cc

+ 1 - 1
src/lib/log/compiler/message.cc

@@ -271,7 +271,7 @@ writePythonFile(const string& file, MessageDictionary& dictionary) {
 
     vector<string> idents(sortedIdentifiers(dictionary));
     BOOST_FOREACH(const string& ident, idents) {
-        pyfile << ident << " = isc.log.message.Message(\"" <<
+        pyfile << ident << " = isc.log.message.create(\"" <<
             ident << "\", \"" << quoteString(dictionary.getText(ident)) <<
             "\")\n";
     }