changeset 1485:60be4627ae52

fix for msvc2008
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Jun 2020 21:07:39 +0200
parents 121d01aa328e
children b931ddbe070e
files Framework/Toolbox/SortedFrames.cpp Framework/Toolbox/SortedFrames.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Toolbox/SortedFrames.cpp	Mon Jun 22 17:46:40 2020 +0200
+++ b/Framework/Toolbox/SortedFrames.cpp	Mon Jun 22 21:07:39 2020 +0200
@@ -81,7 +81,7 @@
   
   SortedFrames::Frame::Frame(const Instance& instance,
                              unsigned int frameIndex) :
-    instance_(instance),
+    instance_(&instance),
     frameIndex_(frameIndex)
   {
     if (frameIndex >= instance.GetNumberOfFrames())
--- a/Framework/Toolbox/SortedFrames.h	Mon Jun 22 17:46:40 2020 +0200
+++ b/Framework/Toolbox/SortedFrames.h	Mon Jun 22 21:07:39 2020 +0200
@@ -69,7 +69,7 @@
     struct Frame
     {
     private:
-      const Instance&  instance_;
+      const Instance*  instance_;
       unsigned int     frameIndex_;
 
     public:
@@ -78,7 +78,7 @@
 
       const Instance& GetInstance() const
       {
-        return instance_;
+        return *instance_;
       }
 
       unsigned int GetFrameIndex() const