# HG changeset patch # User Sebastien Jodogne # Date 1569482547 -7200 # Node ID 58eed6bbcabbffa3af347d54155719969cf946ac # Parent 069519ae389b1febf2b29df07422faabe7a165c1 fix warnings diff -r 069519ae389b -r 58eed6bbcabb Framework/Scene2DViewport/MeasureToolsToolbox.cpp --- 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); diff -r 069519ae389b -r 58eed6bbcabb Framework/Toolbox/DicomStructurePolygon2.cpp --- 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(-1); size_t vindex = static_cast(-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 diff -r 069519ae389b -r 58eed6bbcabb Framework/Toolbox/DisjointDataSet.h --- 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++) {