diff options
author | Torgny Nyblom <kde@nyblom.org> | 2010-11-30 10:37:55 +0100 |
---|---|---|
committer | Torgny Nyblom <kde@nyblom.org> | 2010-11-30 10:37:55 +0100 |
commit | 6e13e426db84b9137b98ba80552b91e3684085cd (patch) | |
tree | 426532aace85ccefed8d336ba9ef2da58077bf1a | |
parent | 5f14cd45c15b9eca56f224a7596db611294c4df0 (diff) | |
download | svn2git-6e13e426db84b9137b98ba80552b91e3684085cd.tar svn2git-6e13e426db84b9137b98ba80552b91e3684085cd.tar.gz svn2git-6e13e426db84b9137b98ba80552b91e3684085cd.tar.bz2 svn2git-6e13e426db84b9137b98ba80552b91e3684085cd.tar.xz svn2git-6e13e426db84b9137b98ba80552b91e3684085cd.zip |
Allow more then one variable to be used on a line.
-rw-r--r-- | src/ruleparser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp index 6f98fbf..27ab0ca 100644 --- a/src/ruleparser.cpp +++ b/src/ruleparser.cpp @@ -129,8 +129,7 @@ void Rules::load(const QString &filename) QString includeFile = filename.left( index + 1) + includeLine.cap(1); load(includeFile); } else { - int index = variableLine.indexIn(line); - if ( index != -1 ) { + while( variableLine.indexIn(line) != -1 ) { if (!m_variables.contains(variableLine.cap(1))) qFatal("Undeclared variable: %s", qPrintable(variableLine.cap(1))); line = line.replace(variableLine, m_variables[variableLine.cap(1)]); |