Warning ISO C++11: Does not convert string to char *

Hello,

I wrote code like

[code]void GetListOfBranches(char *InputRootFile, char *TreeName)
{
TFile inputFile (InputRootFile);

TTree *ttree = (TTree*)inputFile.Get(TreeName);

int n=0;
for (TObject* keyAsObj : *ttree->GetListOfBranches()){
	auto key = dynamic_cast<TBranch*>(keyAsObj);
	n++;
	if (n%3 == 0) cout<<"\t";
	std::cout << key->GetName() << "\t\t";
}
cout<<endl;

}[/code]

and running it as

root -l -b -q GetListOfBranches.C\(\"WLWL_ele.root\",\"otree\"\)

But I am getting warning saying:

Please suggest what I am doing wrong?

Thanks in advance for you help.

with regards,
Ram

void GetListOfBranches(const char *InputRootFile, const char *TreeName)