Commit c4fdda5b authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Compile.

parent 341a843b
...@@ -39,10 +39,9 @@ public: ...@@ -39,10 +39,9 @@ public:
void addInclude(const QString &absoluteFilePath) void addInclude(const QString &absoluteFilePath)
{ included.append(absoluteFilePath); } { included.append(absoluteFilePath); }
virtual void sourceNeeded(QString &fileName, IncludeType mode, unsigned line) virtual void sourceNeeded(QString &fileName, IncludeType mode, unsigned)
{ {
// ### cache const QString currentFile = env->currentFile;
const QString currentFile = QFile::decodeName(env->currentFile);
if (mode == IncludeLocal) { if (mode == IncludeLocal) {
const QFileInfo currentFileInfo(currentFile); const QFileInfo currentFileInfo(currentFile);
...@@ -115,7 +114,7 @@ int main(int argc, char *argv[]) ...@@ -115,7 +114,7 @@ int main(int argc, char *argv[])
client.addSystemDir(qgetenv("QTDIR") + "/include"); client.addSystemDir(qgetenv("QTDIR") + "/include");
Preprocessor preproc(&client, &env); Preprocessor preproc(&client, &env);
preproc.preprocess(QFile::encodeName(fn), code, /*result = */ 0); preproc.preprocess(fn, code, /*result = */ 0);
deps = client.includedFiles(); deps = client.includedFiles();
todo += deps; todo += deps;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment