Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Scene2DViewport/LayerHolder.cpp @ 1742:911cd9a11ad3
removed "using namespace Orthanc"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 30 Jan 2021 12:30:09 +0100 |
parents | 9ac2a65d4172 |
children | 3889ae96d2e9 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2DViewport/LayerHolder.cpp Tue Jan 19 16:12:43 2021 +0100 +++ b/OrthancStone/Sources/Scene2DViewport/LayerHolder.cpp Sat Jan 30 12:30:09 2021 +0100 @@ -115,7 +115,6 @@ std::unique_ptr<IViewport::ILock> lock(GetViewportLock()); const Scene2D& scene = lock->GetController().GetScene(); - using namespace Orthanc; ORTHANC_ASSERT(baseLayerIndex_ != -1); ORTHANC_ASSERT(scene.HasLayer(GetPolylineLayerIndex(index))); ISceneLayer* layer = &(scene.GetLayer(GetPolylineLayerIndex(index))); @@ -132,7 +131,6 @@ std::unique_ptr<IViewport::ILock> lock(GetViewportLock()); const Scene2D& scene = lock->GetController().GetScene(); - using namespace Orthanc; ORTHANC_ASSERT(baseLayerIndex_ != -1); ORTHANC_ASSERT(scene.HasLayer(GetTextLayerIndex(index))); ISceneLayer* layer = &(scene.GetLayer(GetTextLayerIndex(index))); @@ -146,14 +144,12 @@ int LayerHolder::GetPolylineLayerIndex(int index /*= 0*/) { - using namespace Orthanc; ORTHANC_ASSERT(index < polylineLayerCount_); return baseLayerIndex_ + index; } int LayerHolder::GetTextLayerIndex(int index /*= 0*/) { - using namespace Orthanc; ORTHANC_ASSERT(index < textLayerCount_); // the text layers are placed right after the polyline layers