Skip to content
Snippets Groups Projects
Commit c4fdda5b authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Compile.

parent 341a843b
No related merge requests found
......@@ -39,10 +39,9 @@ public:
void addInclude(const QString &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 = QFile::decodeName(env->currentFile);
const QString currentFile = env->currentFile;
if (mode == IncludeLocal) {
const QFileInfo currentFileInfo(currentFile);
......@@ -115,7 +114,7 @@ int main(int argc, char *argv[])
client.addSystemDir(qgetenv("QTDIR") + "/include");
Preprocessor preproc(&client, &env);
preproc.preprocess(QFile::encodeName(fn), code, /*result = */ 0);
preproc.preprocess(fn, code, /*result = */ 0);
deps = client.includedFiles();
todo += deps;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment