Skip to content

Commit 6c68bf4

Browse files
anerokhisawenzel
authored andcommitted
Fix modernize-raw-string-literal
by removing unnecessary single quote escaping
1 parent db7bd59 commit 6c68bf4

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Generators/src/GeneratorFactory.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,37 +148,37 @@ void GeneratorFactory::setPrimaryGenerator(o2::conf::SimConfig const& conf, Fair
148148
auto ptr = (double*)gROOT->GetGlobal("momentumUnit")->GetAddress();
149149
tgen->setMomentumUnit(*ptr);
150150
} else {
151-
LOG(FATAL) << "Mandatory global variable \'momentumUnit\' not defined";
151+
LOG(FATAL) << "Mandatory global variable 'momentumUnit' not defined";
152152
}
153153
if (gROOT->GetGlobal("energyUnit")) {
154154
auto ptr = (double*)gROOT->GetGlobal("energyUnit")->GetAddress();
155155
tgen->setEnergyUnit(*ptr);
156156
} else {
157-
LOG(FATAL) << "Mandatory global variable \'energyUnit\' not defined";
157+
LOG(FATAL) << "Mandatory global variable 'energyUnit' not defined";
158158
}
159159
if (gROOT->GetGlobal("positionUnit")) {
160160
auto ptr = (double*)gROOT->GetGlobal("positionUnit")->GetAddress();
161161
tgen->setPositionUnit(*ptr);
162162
} else {
163-
LOG(FATAL) << "Mandatory global variable \'positionUnit\' not defined";
163+
LOG(FATAL) << "Mandatory global variable 'positionUnit' not defined";
164164
}
165165
if (gROOT->GetGlobal("timeUnit")) {
166166
auto ptr = (double*)gROOT->GetGlobal("timeUnit")->GetAddress();
167167
tgen->setMomentumUnit(*ptr);
168168
} else {
169-
LOG(FATAL) << "Mandatory global variable \'timeUnit\' not defined";
169+
LOG(FATAL) << "Mandatory global variable 'timeUnit' not defined";
170170
}
171171
/** retrieve TGenerator **/
172172
auto extgen_gfunc = extgen_func.substr(0, extgen_func.find_first_of('('));
173173
if (!gROOT->GetGlobalFunction(extgen_gfunc.c_str())) {
174-
LOG(FATAL) << "Global function \'"
174+
LOG(FATAL) << "Global function '"
175175
<< extgen_gfunc
176-
<< "\' not defined";
176+
<< "' not defined";
177177
}
178178
if (strcmp(gROOT->GetGlobalFunction(extgen_gfunc.c_str())->GetReturnTypeName(), "TGenerator*")) {
179-
LOG(FATAL) << "Global function \'"
179+
LOG(FATAL) << "Global function '"
180180
<< extgen_gfunc
181-
<< "\' does not return a \'TGenerator*\' type";
181+
<< "' does not return a 'TGenerator*' type";
182182
}
183183
gROOT->ProcessLine(Form("TGenerator *__extgen = dynamic_cast<TGenerator *>(%s);", extgen_func.c_str()));
184184
auto extgen_ptr = (TGenerator**)gROOT->GetGlobal("__extgen")->GetAddress();

0 commit comments

Comments
 (0)