From ce7a983c2849e4c8fa72189a896e594a8497dd4c Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 31 Jan 2016 14:17:57 +0100 Subject: Bug 504305 - FILTER_PATTERNS won't take command with arguments INPUT_FILTER is a string so multiple values are read till the end of the line and quotes are automatically removed. FILTER_PATTERNS and FILTER_SOURCE_PATTERNS are list of strings so with multiple arguments for one extension quotes are mandatory, but they were not removed. --- src/util.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util.cpp b/src/util.cpp index fdd39f9..25ab4e1 100755 --- a/src/util.cpp +++ b/src/util.cpp @@ -2366,6 +2366,12 @@ QCString getFileFilter(const char* name,bool isSourceCode) } else { + /* remove surrounding double quotes */ + if ((filterName.right(1) == "\"") && (filterName.left(1) == "\"")) + { + filterName.remove(filterName.length() - 1, 1); + filterName.remove(0, 1); + } return filterName; } } -- cgit v0.12