Skip to content
Snippets Groups Projects
Commit 7bee0aa0 authored by Danilo Piparo's avatar Danilo Piparo
Browse files

Refine template specialisation for histograms

parent 8a6ec5c6
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ namespace ROOT { ...@@ -74,6 +74,7 @@ namespace ROOT {
static T *Clone(const T *obj, TDirectory* d = nullptr) { static T *Clone(const T *obj, TDirectory* d = nullptr) {
T* clone; T* clone;
if (d){ if (d){
TDirectory::TContext ctxt(d);
clone = (T*)obj->Clone(); clone = (T*)obj->Clone();
} else { } else {
clone = (T*)obj->Clone(); clone = (T*)obj->Clone();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment