Do not insert currentDocument variable for empty files.
Polish VariableManager, QLatin1String(), const-correctness.
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
of a generic project. This way one can use variables like
${CURRENT_DOCUMENT:path} or ${CURRENT_DOCUMENT:baseName}.
Amend: Fix coding style according to apoenitz's comment.
Amend2: Some more coding style issues.
Merge-request: 820
Reviewed-by: con <qtc-committer@nokia.com>