From 94494155597ce9a97652afd2f9a7be4bdc2710d0 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 12 Feb 2016 16:28:08 +0100 Subject: [PATCH] Use non-const event access operator. --- src/ctobssim/ctobssim.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ctobssim/ctobssim.cpp b/src/ctobssim/ctobssim.cpp index 7ec7450..77fb0ca 100644 --- a/src/ctobssim/ctobssim.cpp +++ b/src/ctobssim/ctobssim.cpp @@ -364,8 +364,7 @@ void ctobssim::run(void) // event list information such as ROI, Good Time Intervals, // energy boundaries. This will also keep additional columns // in an event list file. - GCTAEventList* events = - static_cast(const_cast(obs->events())); + GCTAEventList* events = static_cast(obs->events()); events->remove(0, events->size()); // Work on a clone of the CTA observation. This makes sure that -- libgit2 0.21.4