From 6fc5644b3e05e6f52a26c59530f7e64bd9689246 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 31 Oct 2024 21:40:27 +0100 Subject: [PATCH] Fix typos found by codespell --- examples/cpp/find.cpp | 4 ++-- src/odil/FindSCU.cpp | 4 ++-- src/odil/dul/StateMachine.h | 4 ++-- tests/tools/scu.cc | 4 ++-- wrappers/python/Value.cpp | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/cpp/find.cpp b/examples/cpp/find.cpp index 41a12829..fb89af17 100644 --- a/examples/cpp/find.cpp +++ b/examples/cpp/find.cpp @@ -58,7 +58,7 @@ int main() std::cout << "Callback\n"; std::cout << "--------\n\n"; - // We are re-using the query in the next call to "find", so do not move it. + // We are reusing the query in the next call to "find", so do not move it. scu.find(query, print_informations); std::cout << "\n"; @@ -67,7 +67,7 @@ int main() std::cout << "vector\n"; std::cout << "------\n\n"; - // We are not re-using the query, so move it. + // We are not reusing the query, so move it. auto const result = scu.find(std::move(query)); for(auto const & dataset: result) { diff --git a/src/odil/FindSCU.cpp b/src/odil/FindSCU.cpp index 50008161..8dd8e831 100644 --- a/src/odil/FindSCU.cpp +++ b/src/odil/FindSCU.cpp @@ -24,8 +24,8 @@ namespace odil { FindSCU -::FindSCU(Association & asociation) -: SCU(asociation) +::FindSCU(Association & association) +: SCU(association) { // Nothing else. } diff --git a/src/odil/dul/StateMachine.h b/src/odil/dul/StateMachine.h index f45688a6..a64e0073 100644 --- a/src/odil/dul/StateMachine.h +++ b/src/odil/dul/StateMachine.h @@ -243,8 +243,8 @@ class ODIL_API StateMachine void AA_2(EventData & data); /** - * @brief If (service-user inititated abort): issue A-ABORT indication and - * close transport connection ; otherwise (service-provider inititated + * @brief If (service-user initiated abort): issue A-ABORT indication and + * close transport connection ; otherwise (service-provider initiated * abort): issue A-P-ABORT indication and close transport connection. */ void AA_3(EventData & data); diff --git a/tests/tools/scu.cc b/tests/tools/scu.cc index 04471d62..4ecd813b 100644 --- a/tests/tools/scu.cc +++ b/tests/tools/scu.cc @@ -159,7 +159,7 @@ OFCondition DcmSCU::initNetwork() return cond; } - /* initialize asscociation parameters, i.e. create an instance of T_ASC_Parameters*. */ + /* initialize association parameters, i.e. create an instance of T_ASC_Parameters*. */ cond = ASC_createAssociationParameters(&m_params, m_maxReceivePDULength); if (cond.bad()) { @@ -2447,7 +2447,7 @@ void RetrieveResponse::print() ** abstract syntax UID and the transfer syntax UID. ** ** Revision 1.30 2011-05-24 08:38:39 ogazzar -** Added role selection negotiation while adding a presenation context. +** Added role selection negotiation while adding a presentation context. ** ** Revision 1.29 2011-05-19 17:19:52 onken ** Fixed some documentation. Added some extra checks for NULL when handling MOVE diff --git a/wrappers/python/Value.cpp b/wrappers/python/Value.cpp index 803f495b..10158493 100644 --- a/wrappers/python/Value.cpp +++ b/wrappers/python/Value.cpp @@ -235,7 +235,7 @@ void wrap_Value(pybind11::module & m) ; // NOTE Using bind_vector brings back #63. - // Re-use the code of bind_vector and modify where needed. + // Reuse the code of bind_vector and modify where needed. { using Vector = Value::Strings; std::string const name = "Strings";