changeset 1018:58eed6bbcabb

fix warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Sep 2019 09:22:27 +0200
parents 069519ae389b
children 29f5f2031310 a416ce923b60
files Framework/Scene2DViewport/MeasureToolsToolbox.cpp Framework/Toolbox/DicomStructurePolygon2.cpp Framework/Toolbox/DisjointDataSet.h
diffstat 3 files changed, 3 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Scene2DViewport/MeasureToolsToolbox.cpp	Thu Sep 26 09:16:21 2019 +0200
+++ b/Framework/Scene2DViewport/MeasureToolsToolbox.cpp	Thu Sep 26 09:22:27 2019 +0200
@@ -337,10 +337,6 @@
     , ScenePoint2D p
     , int layerIndex)
   {
-    // get the scaling factor 
-    const double pixelToScene =
-      scene.GetCanvasToSceneTransform().ComputeZoom();
-
     TextSceneLayer* textLayer = layerHolder->GetTextLayer(layerIndex);
     ORTHANC_ASSERT(textLayer != NULL);
     textLayer->SetText(text);
--- a/Framework/Toolbox/DicomStructurePolygon2.cpp	Thu Sep 26 09:16:21 2019 +0200
+++ b/Framework/Toolbox/DicomStructurePolygon2.cpp	Thu Sep 26 09:22:27 2019 +0200
@@ -89,9 +89,6 @@
     // if true, then "u" in the code is "x" and "v" is "y". 
     // (v is constant in the plane)
     bool uvxy = false;
-    // if true, then "u" in the code is "y" and "v" is "x"
-    // (v is constant in the plane)
-    bool uvyx = false;
 
     size_t uindex = static_cast<size_t>(-1);
     size_t vindex = static_cast<size_t>(-1);
@@ -106,7 +103,6 @@
       vindex = 0;
 
       uvxy = false;
-      uvyx = true;
       planeV = plane.GetOrigin()[0];
       if (planeV < minX_)
         return;
@@ -121,7 +117,6 @@
       vindex = 1;
 
       uvxy = true;
-      uvyx = false;
       planeV = plane.GetOrigin()[1];
       if (planeV < minY_)
         return;
@@ -254,8 +249,6 @@
   ORTHANC_ASSERT(LinearAlgebra::IsNear(plane.GetNormal()[0], 0.0));
   ORTHANC_ASSERT(LinearAlgebra::IsNear(plane.GetNormal()[1], 0.0));
 
-  size_t pointCount = GetPointCount();
-
   segments.clear();
   segments.reserve(points_.size());
   // since the returned values need to be expressed in the supplied coordinate
--- a/Framework/Toolbox/DisjointDataSet.h	Thu Sep 26 09:16:21 2019 +0200
+++ b/Framework/Toolbox/DisjointDataSet.h	Thu Sep 26 09:22:27 2019 +0200
@@ -29,9 +29,9 @@
   class DisjointDataSet
   {
   public:
-    DisjointDataSet(size_t itemCount)
-      : ranks_(itemCount)
-      , parents_(itemCount)
+    DisjointDataSet(size_t itemCount) :
+      parents_(itemCount),
+      ranks_(itemCount)
     {
       for (size_t index = 0; index < parents_.size(); index++)
       {