Mercurial > hg > orthanc-stone
changeset 1994:2f242d231a22
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 31 Oct 2022 22:21:39 +0100 |
parents | 317a53d4fdc6 |
children | f2a094fa8c33 |
files | Applications/Resources/RunCppCheck.sh OrthancStone/Sources/Scene2D/MagnifyingGlassTracker.cpp OrthancStone/Sources/Scene2D/MagnifyingGlassTracker.h |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/Resources/RunCppCheck.sh Mon Oct 31 22:19:57 2022 +0100 +++ b/Applications/Resources/RunCppCheck.sh Mon Oct 31 22:21:39 2022 +0100 @@ -31,8 +31,8 @@ cat <<EOF > /tmp/cppcheck-suppressions.txt constParameter:../../RenderingPlugin/Sources/Plugin.cpp:778 stlFindInsert:../../Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewerApplication.h -stlFindInsert:../../Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp:1162 -stlFindInsert:../../Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp:519 +stlFindInsert:../../Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp:1166 +stlFindInsert:../../Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp:523 unpreciseMathCall:../../OrthancStone/Sources/Scene2D/Internals/CairoFloatTextureRenderer.cpp unpreciseMathCall:../../OrthancStone/Sources/Scene2D/LookupTableTextureSceneLayer.cpp unreadVariable:../../OrthancStone/Sources/Platforms/Sdl/SdlViewport.cpp:159
--- a/OrthancStone/Sources/Scene2D/MagnifyingGlassTracker.cpp Mon Oct 31 22:19:57 2022 +0100 +++ b/OrthancStone/Sources/Scene2D/MagnifyingGlassTracker.cpp Mon Oct 31 22:21:39 2022 +0100 @@ -28,7 +28,7 @@ namespace OrthancStone { - void MagnifyingGlassTracker::Update(ViewportLocker& locker, + void MagnifyingGlassTracker::Update(const ViewportLocker& locker, const PointerEvent& event) { ScenePoint2D p = event.GetMainPosition().Apply(originalCanvasToScene_);
--- a/OrthancStone/Sources/Scene2D/MagnifyingGlassTracker.h Mon Oct 31 22:19:57 2022 +0100 +++ b/OrthancStone/Sources/Scene2D/MagnifyingGlassTracker.h Mon Oct 31 22:21:39 2022 +0100 @@ -38,7 +38,7 @@ AffineTransform2D originalSceneToCanvas_; AffineTransform2D originalCanvasToScene_; - void Update(ViewportLocker& locker, + void Update(const ViewportLocker& locker, const PointerEvent& event); public: