summaryrefslogtreecommitdiffstats
path: root/src/qdoc/location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/location.cpp')
-rw-r--r--src/qdoc/location.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qdoc/location.cpp b/src/qdoc/location.cpp
index dc378b1d1..a77537f56 100644
--- a/src/qdoc/location.cpp
+++ b/src/qdoc/location.cpp
@@ -313,13 +313,14 @@ void Location::report(const QString &message, const QString &details) const
}
/*!
- Gets several parameters from the \a config, including
+ Gets several parameters from the config, including
tab size, program name, and a regular expression that
appears to be used for matching certain error messages
so that emitMessage() can avoid printing them.
*/
-void Location::initialize(const Config &config)
+void Location::initialize()
{
+ Config &config = Config::instance();
tabSize = config.getInt(CONFIG_TABSIZE);
programName = config.programName();
project = config.getString(CONFIG_PROJECT);