From b395a2e307e9b44c394b6f0e46de319a93ef85d4 Mon Sep 17 00:00:00 2001 From: leopardracer <136604165+leopardracer@users.noreply.github.com> Date: Wed, 11 Jun 2025 16:19:05 +0300 Subject: [PATCH] Merge pull request #27434 from leopardracer:4.x MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix Typos in Comments and Error Messages Across Multiple Files #27434 Description: This pull request corrects several typographical errors in comments and error messages in the following files: - `samples/directx/d3d11_interop.cpp`: Fixed typo in the error message ("betweem" → "between"). - `samples/dnn/yolo_detector.cpp`: Fixed typo in a comment ("elemets" → "elements"). - `samples/winrt/ImageManipulations/MediaExtensions/OcvTransform.cpp`: Fixed typo in a comment ("peferred" → "preferred"). These changes improve code readability and maintain consistency in documentation and error reporting. No functional code was modified. --- samples/directx/d3d11_interop.cpp | 2 +- samples/dnn/yolo_detector.cpp | 2 +- .../MediaExtensions/OcvTransform/OcvTransform.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/directx/d3d11_interop.cpp b/samples/directx/d3d11_interop.cpp index 6c55a0c48b..1869f9e31c 100644 --- a/samples/directx/d3d11_interop.cpp +++ b/samples/directx/d3d11_interop.cpp @@ -373,7 +373,7 @@ public: r = m_pD3D11SwapChain->Present(0, 0); if (FAILED(r)) { - throw std::runtime_error("switch betweem fronat and back buffers failed!"); + throw std::runtime_error("switch between fronat and back buffers failed!"); } } // try diff --git a/samples/dnn/yolo_detector.cpp b/samples/dnn/yolo_detector.cpp index df0cd19ed1..48bb763b52 100644 --- a/samples/dnn/yolo_detector.cpp +++ b/samples/dnn/yolo_detector.cpp @@ -125,7 +125,7 @@ void yoloPostProcessing( if (model_name == "yolonas") { - // outs contains 2 elemets of shape [1, 8400, nc] and [1, 8400, 4]. Concat them to get [1, 8400, nc+4] + // outs contains 2 elements of shape [1, 8400, nc] and [1, 8400, 4]. Concat them to get [1, 8400, nc+4] Mat concat_out; // squeeze the first dimension outs[0] = outs[0].reshape(1, outs[0].size[1]); diff --git a/samples/winrt/ImageManipulations/MediaExtensions/OcvTransform/OcvTransform.cpp b/samples/winrt/ImageManipulations/MediaExtensions/OcvTransform/OcvTransform.cpp index a2854d2382..64549112d3 100644 --- a/samples/winrt/ImageManipulations/MediaExtensions/OcvTransform/OcvTransform.cpp +++ b/samples/winrt/ImageManipulations/MediaExtensions/OcvTransform/OcvTransform.cpp @@ -1047,7 +1047,7 @@ done: // Create a partial media type from our list. // -// dwTypeIndex: Index into the list of peferred media types. +// dwTypeIndex: Index into the list of preferred media types. // ppmt: Receives a pointer to the media type. HRESULT OcvImageManipulations::OnGetPartialType(DWORD dwTypeIndex, IMFMediaType **ppmt)