···
1
-
diff --git a/core/metacling/src/TCling.cxx b/core/metacling/src/TCling.cxx
2
-
index d71cb74..076facb 100644
3
-
--- a/core/metacling/src/TCling.cxx
4
-
+++ b/core/metacling/src/TCling.cxx
5
-
@@ -756,7 +756,7 @@ int TCling_GenerateDictionary(const std::vector<std::string> &classes,
6
-
gSystem->PrependPathName(dirbase, header);
7
-
dir = gSystem->DirName(dir);
9
-
- fileContent += TString("#include \"") + header + "\"\n";
10
-
+ fileContent += (TString("#include \"") + header + "\"\n").Data();
13
-
for (it = fwdDecls.begin(); it != fwdDecls.end(); ++it) {
14
-
@@ -1061,7 +1061,7 @@ TCling::TCling(const char *name, const char *title)
15
-
ROOT::TMetaUtils::SetPathsForRelocatability(clingArgsStorage);
17
-
// Add -I early so ASTReader can find the headers.
18
-
- std::string interpInclude(TROOT::GetEtcDir());
19
-
+ std::string interpInclude(TROOT::GetEtcDir().Data());
20
-
clingArgsStorage.push_back("-I" + interpInclude);
22
-
// Add include path to etc/cling. FIXME: This is a short term solution. The
23
-
@@ -1070,7 +1070,7 @@ TCling::TCling(const char *name, const char *title)
24
-
clingArgsStorage.push_back("-I" + interpInclude + "/cling");
26
-
// Add the root include directory and etc/ to list searched by default.
27
-
- clingArgsStorage.push_back(std::string("-I" + TROOT::GetIncludeDir()));
28
-
+ clingArgsStorage.push_back(std::string(("-I" + TROOT::GetIncludeDir()).Data()));
30
-
// Add the current path to the include path
31
-
// TCling::AddIncludePath(".");
32
-
diff --git a/hist/hist/src/TFormula.cxx b/hist/hist/src/TFormula.cxx
33
-
index abf3929..e7dad98 100644
34
-
--- a/hist/hist/src/TFormula.cxx
35
-
+++ b/hist/hist/src/TFormula.cxx
36
-
@@ -1677,7 +1677,7 @@ void TFormula::ProcessFormula(TString &formula)
37
-
if(fun.fName.Contains("::")) // add support for nested namespaces
39
-
// look for last occurence of "::"
40
-
- std::string name(fun.fName);
41
-
+ std::string name(fun.fName.Data());
42
-
size_t index = name.rfind("::");
43
-
assert(index != std::string::npos);
44
-
TString className = fun.fName(0,fun.fName(0,index).Length());
45
-
@@ -1869,7 +1869,7 @@ void TFormula::ProcessFormula(TString &formula)
47
-
// save copy of inputFormula in a std::strig for the unordered map
48
-
// and also formula is same as FClingInput typically and it will be modified
49
-
- std::string inputFormula = std::string(formula);
50
-
+ std::string inputFormula = std::string(formula.Data());
53
-
// valid input formula - try to put into Cling
54
-
diff --git a/main/src/nbmain.cxx b/main/src/nbmain.cxx
55
-
index 55d4f2f..8490149 100644
56
-
--- a/main/src/nbmain.cxx
57
-
+++ b/main/src/nbmain.cxx
58
-
@@ -173,9 +173,9 @@ static bool CreateStamp(string dest)
62
-
- string rootbin(TROOT::GetBinDir());
63
-
- string rootlib(TROOT::GetLibDir());
64
-
- string rootetc(TROOT::GetEtcDir());
65
-
+ string rootbin(TROOT::GetBinDir().Data());
66
-
+ string rootlib(TROOT::GetLibDir().Data());
67
-
+ string rootetc(TROOT::GetEtcDir().Data());
69
-
// If needed, install ROOT notebook files in the user's home directory
71
-
diff --git a/math/minuit/src/TMinuitMinimizer.cxx b/math/minuit/src/TMinuitMinimizer.cxx
72
-
index 4e2082a..18215c0 100644
73
-
--- a/math/minuit/src/TMinuitMinimizer.cxx
74
-
+++ b/math/minuit/src/TMinuitMinimizer.cxx
75
-
@@ -454,7 +454,7 @@ std::string TMinuitMinimizer::VariableName(unsigned int ivar) const {
76
-
// return the variable name
77
-
if (!CheckMinuitInstance()) return std::string();
78
-
if (!CheckVarIndex(ivar)) return std::string();
79
-
- return std::string(fMinuit->fCpnam[ivar]);
80
-
+ return std::string(fMinuit->fCpnam[ivar].Data());
83
-
int TMinuitMinimizer::VariableIndex(const std::string & ) const {
84
-
diff --git a/tmva/tmva/src/Factory.cxx b/tmva/tmva/src/Factory.cxx
85
-
index 36060ef..a1bbe34 100644
86
-
--- a/tmva/tmva/src/Factory.cxx
87
-
+++ b/tmva/tmva/src/Factory.cxx
88
-
@@ -390,7 +390,7 @@ TMVA::MethodBase* TMVA::Factory::BookMethod( TMVA::DataLoader *loader, TString t
89
-
// initialize methods
92
-
- im = ClassifierFactory::Instance().Create( std::string(theMethodName),
93
-
+ im = ClassifierFactory::Instance().Create( std::string(theMethodName.Data()),
96
-
loader->DefaultDataSetInfo(),
97
-
@@ -933,7 +933,7 @@ void TMVA::Factory::TrainAllMethods()
100
-
m = dynamic_cast<MethodBase*>( ClassifierFactory::Instance()
101
-
- .Create( std::string(Types::Instance().GetMethodName(methodType)),
102
-
+ .Create( std::string(Types::Instance().GetMethodName(methodType).Data()),
103
-
dataSetInfo, weightfile ) );
104
-
if( m->GetMethodType() == Types::kCategory ){
105
-
MethodCategory *methCat = (dynamic_cast<MethodCategory*>(m));
106
-
diff --git a/tmva/tmva/src/MethodBoost.cxx b/tmva/tmva/src/MethodBoost.cxx
107
-
index 1349e5d..2125ab3 100644
108
-
--- a/tmva/tmva/src/MethodBoost.cxx
109
-
+++ b/tmva/tmva/src/MethodBoost.cxx
110
-
@@ -389,7 +389,7 @@ void TMVA::MethodBoost::Train()
111
-
// the first classifier shows the option string output, the rest not
112
-
if (fCurrentMethodIdx>0) TMVA::MsgLogger::InhibitOutput();
114
-
- IMethod* method = ClassifierFactory::Instance().Create(std::string(fBoostedMethodName),
115
-
+ IMethod* method = ClassifierFactory::Instance().Create(std::string(fBoostedMethodName.Data()),
117
-
Form("%s_B%04i", fBoostedMethodTitle.Data(),fCurrentMethodIdx),
119
-
diff --git a/tmva/tmva/src/MethodCategory.cxx b/tmva/tmva/src/MethodCategory.cxx
120
-
index c2cbe80..d278cca 100644
121
-
--- a/tmva/tmva/src/MethodCategory.cxx
122
-
+++ b/tmva/tmva/src/MethodCategory.cxx
123
-
@@ -147,7 +147,7 @@ TMVA::IMethod* TMVA::MethodCategory::AddMethod( const TCut& theCut,
124
-
const TString& theTitle,
125
-
const TString& theOptions )
127
-
- std::string addedMethodName = std::string(Types::Instance().GetMethodName(theMethod));
128
-
+ std::string addedMethodName = std::string(Types::Instance().GetMethodName(theMethod).Data());
130
-
Log() << kINFO << "Adding sub-classifier: " << addedMethodName << "::" << theTitle << Endl;
132
-
diff --git a/tmva/tmva/src/MethodCompositeBase.cxx b/tmva/tmva/src/MethodCompositeBase.cxx
133
-
index 98fa5da..96bd9a3 100644
134
-
--- a/tmva/tmva/src/MethodCompositeBase.cxx
135
-
+++ b/tmva/tmva/src/MethodCompositeBase.cxx
136
-
@@ -194,7 +194,7 @@ void TMVA::MethodCompositeBase::ReadWeightsFromXML( void* wghtnode )
137
-
((TMVA::MethodBoost*)this)->BookMethod( Types::Instance().GetMethodType( methodTypeName), methodName, optionString );
139
-
fMethods.push_back(ClassifierFactory::Instance().Create(
140
-
- std::string(methodTypeName),jobName, methodName,DataInfo(),optionString));
141
-
+ std::string(methodTypeName.Data()),jobName, methodName,DataInfo(),optionString));
143
-
fMethodWeight.push_back(methodWeight);
144
-
MethodBase* meth = dynamic_cast<MethodBase*>(fMethods.back());
145
-
@@ -259,7 +259,7 @@ void TMVA::MethodCompositeBase::ReadWeightsFromStream( std::istream& istr )
146
-
((TMVA::MethodBoost*)this)->BookMethod( Types::Instance().GetMethodType( methodName), methodTitle, optionString );
148
-
else methodTitle=Form("%s (%04i)",GetMethodName().Data(),fCurrentMethodIdx);
149
-
- fMethods.push_back(ClassifierFactory::Instance().Create( std::string(methodName), jobName,
150
-
+ fMethods.push_back(ClassifierFactory::Instance().Create( std::string(methodName.Data()), jobName,
151
-
methodTitle,DataInfo(), optionString) );
152
-
fMethodWeight.push_back( methodWeight );
153
-
if(MethodBase* m = dynamic_cast<MethodBase*>(fMethods.back()) )
154
-
diff --git a/tmva/tmva/src/Reader.cxx b/tmva/tmva/src/Reader.cxx
155
-
index 94a8b28..0b67867 100644
156
-
--- a/tmva/tmva/src/Reader.cxx
157
-
+++ b/tmva/tmva/src/Reader.cxx
158
-
@@ -401,7 +401,7 @@ TMVA::IMethod* TMVA::Reader::BookMVA( const TString& methodTag, const TString& w
160
-
TMVA::IMethod* TMVA::Reader::BookMVA( TMVA::Types::EMVA methodType, const TString& weightfile )
162
-
- IMethod* im = ClassifierFactory::Instance().Create(std::string(Types::Instance().GetMethodName( methodType )),
163
-
+ IMethod* im = ClassifierFactory::Instance().Create(std::string(Types::Instance().GetMethodName( methodType ).Data()),
164
-
DataInfo(), weightfile );
166
-
MethodBase *method = (dynamic_cast<MethodBase*>(im));
167
-
@@ -440,7 +440,7 @@ TMVA::IMethod* TMVA::Reader::BookMVA( TMVA::Types::EMVA methodType, const char*
168
-
#if ROOT_VERSION_CODE >= ROOT_VERSION(5,26,00)
170
-
// books MVA method from weightfile
171
-
- IMethod* im = ClassifierFactory::Instance().Create(std::string(Types::Instance().GetMethodName( methodType )),
172
-
+ IMethod* im = ClassifierFactory::Instance().Create(std::string(Types::Instance().GetMethodName( methodType ).Data()),
175
-
MethodBase *method = (dynamic_cast<MethodBase*>(im));