From bafe1f92f24d528900b5a23a15a7f8f0ba31d0e5 Mon Sep 17 00:00:00 2001 From: Axel Naumann <Axel.Naumann@cern.ch> Date: Mon, 1 Dec 2008 16:20:52 +0000 Subject: [PATCH] Fix an issue reported by Eddy: the function doc would sometimes misidentify the function (TObject's copy c'tor was shown twice) git-svn-id: http://root.cern.ch/svn/root/trunk@26553 27541ba8-7e3a-0410-8455-c3a389f83636 --- html/src/TDocParser.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/html/src/TDocParser.cxx b/html/src/TDocParser.cxx index fa118796f32..6180d90b8d9 100644 --- a/html/src/TDocParser.cxx +++ b/html/src/TDocParser.cxx @@ -1974,7 +1974,13 @@ void TDocParser::WriteMethod(std::ostream& out, TString& ret, TMethod* guessedMethod = 0; int nparams = params.CountChar(','); - if (params.Length()) ++nparams; + TString strippedParams(params); + if (strippedParams[0] == '(') { + strippedParams.Remove(0, 1); + strippedParams.Remove(strippedParams.Length() - 1); + } + if (strippedParams.Strip(TString::kBoth).Length()) + ++nparams; TMethod* method = 0; TIter nextMethod(fCurrentClass->GetListOfMethods()); -- GitLab