File fix-return-type.patch of Package osgcal

diff -Nur libosgcal0-0.1.46/src/osgCal/HardwareModel.cpp new/src/osgCal/HardwareModel.cpp
--- libosgcal0-0.1.46/src/osgCal/HardwareModel.cpp	2007-09-11 17:29:43.000000000 +0200
+++ new/src/osgCal/HardwareModel.cpp	2016-06-28 09:22:10.544071582 +0200
@@ -244,7 +244,7 @@
     if( m_selectedHardwareMesh >= 0 && m_selectedHardwareMesh < int(m_vectorHardwareMesh.size()) 
     && m_vectorHardwareMesh[m_selectedHardwareMesh].pCoreMaterial!=0)
   {
-    CalCoreMaterial::Color& color = m_vectorHardwareMesh[m_selectedHardwareMesh].pCoreMaterial->getAmbientColor();
+    const CalCoreMaterial::Color color = m_vectorHardwareMesh[m_selectedHardwareMesh].pCoreMaterial->getAmbientColor();
     pColorBuffer[0] = color.red;
     pColorBuffer[1] = color.green;
     pColorBuffer[2] = color.blue;
@@ -255,7 +255,7 @@
     pColorBuffer[0] = 0;
     pColorBuffer[1] = 0;
     pColorBuffer[2] = 0;
-    pColorBuffer[3] = 0;    
+    pColorBuffer[3] = 0;
   } 
 }
 
@@ -275,7 +275,7 @@
     if( m_selectedHardwareMesh >= 0 && m_selectedHardwareMesh < int(m_vectorHardwareMesh.size())
     && m_vectorHardwareMesh[m_selectedHardwareMesh].pCoreMaterial!=0)
   {
-    CalCoreMaterial::Color& color = m_vectorHardwareMesh[m_selectedHardwareMesh].pCoreMaterial->getDiffuseColor();
+    const CalCoreMaterial::Color color = m_vectorHardwareMesh[m_selectedHardwareMesh].pCoreMaterial->getDiffuseColor();
     pColorBuffer[0] = color.red;
     pColorBuffer[1] = color.green;
     pColorBuffer[2] = color.blue;
@@ -286,7 +286,7 @@
     pColorBuffer[0] = 0;
     pColorBuffer[1] = 0;
     pColorBuffer[2] = 0;
-    pColorBuffer[3] = 0;    
+    pColorBuffer[3] = 0;
   } 
 }
  
@@ -305,7 +305,7 @@
     if( m_selectedHardwareMesh >= 0 && m_selectedHardwareMesh < int(m_vectorHardwareMesh.size())
     && m_vectorHardwareMesh[m_selectedHardwareMesh].pCoreMaterial!=0)
   {
-    CalCoreMaterial::Color& color = m_vectorHardwareMesh[m_selectedHardwareMesh].pCoreMaterial->getSpecularColor();
+    const CalCoreMaterial::Color color = m_vectorHardwareMesh[m_selectedHardwareMesh].pCoreMaterial->getSpecularColor();
     pColorBuffer[0] = color.red;
     pColorBuffer[1] = color.green;
     pColorBuffer[2] = color.blue;
@@ -316,7 +316,7 @@
     pColorBuffer[0] = 0;
     pColorBuffer[1] = 0;
     pColorBuffer[2] = 0;
-    pColorBuffer[3] = 0;    
+    pColorBuffer[3] = 0;
   } 
 }
 
diff -Nur libosgcal0-0.1.46/src/osgCal/Model.cpp new/src/osgCal/Model.cpp
--- libosgcal0-0.1.46/src/osgCal/Model.cpp	2007-09-11 17:29:43.000000000 +0200
+++ new/src/osgCal/Model.cpp	2016-06-28 09:36:09.425500363 +0200
@@ -351,8 +351,8 @@
 		}
 
 		CalModel * pCalModel = model->getCalModel();
-		pCalModel->getAbstractMixer()->updateAnimation(deltaTime);
-		pCalModel->getAbstractMixer()->updateSkeleton();
+		pCalModel->getMixer()->updateAnimation(deltaTime);
+		pCalModel->getMixer()->updateSkeleton();
 
 		model->update();