From 55b468a02e9206a2e9b13ff752a139554100ec44 Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sat, 9 Jul 2022 22:15:48 +0200 Subject: [PATCH] Fix spelling errors Fixed with codespell --ignore-words-list=hist,parm,sur --skip=./core/src/imgui,./core/src/json.hpp,./core/libcorrect,./core/src/spdlog,./misc_modules/discord_integration/discord-rpc,./misc_modules/discord_integration/discord-rpc/include/rapidjson,./source_modules/sddc_source/src/libsddc --write-changes --- core/backends/android/backend.cpp | 4 ++-- core/src/command_args.cpp | 6 +++--- core/src/core.cpp | 2 +- core/src/server.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/backends/android/backend.cpp b/core/backends/android/backend.cpp index 93c5f310..5205e93b 100644 --- a/core/backends/android/backend.cpp +++ b/core/backends/android/backend.cpp @@ -368,7 +368,7 @@ namespace backend { jint jni_return = java_vm->GetEnv((void**)&java_env, JNI_VERSION_1_6); if (jni_return == JNI_ERR) - throw std::runtime_error("Could not get JNI environement"); + throw std::runtime_error("Could not get JNI environment"); jni_return = java_vm->AttachCurrentThread(&java_env, NULL); if (jni_return != JNI_OK) @@ -380,7 +380,7 @@ namespace backend { jmethodID method_id = java_env->GetMethodID(native_activity_clazz, "getAppDir", "()Ljava/lang/String;"); if (method_id == NULL) - throw std::runtime_error("Could not get methode ID"); + throw std::runtime_error("Could not get method ID"); jstring jstr = (jstring)java_env->CallObjectMethod(app->activity->clazz, method_id); diff --git a/core/src/command_args.cpp b/core/src/command_args.cpp index 33ef3745..a25120fa 100644 --- a/core/src/command_args.cpp +++ b/core/src/command_args.cpp @@ -79,7 +79,7 @@ int CommandArgsParser::parse(int argc, char* argv[]) { carg.bval = true; } else { - printf("Invald argument, expected bool (true, false, on, off, 1, 0)\n"); + printf("Invalid argument, expected bool (true, false, on, off, 1, 0)\n"); showHelp(); return -1; } @@ -89,7 +89,7 @@ int CommandArgsParser::parse(int argc, char* argv[]) { carg.ival = std::stoi(arg); } catch (std::exception e) { - printf("Invald argument, failed to parse integer\n"); + printf("Invalid argument, failed to parse integer\n"); showHelp(); return -1; } @@ -99,7 +99,7 @@ int CommandArgsParser::parse(int argc, char* argv[]) { carg.fval = std::stod(arg); } catch (std::exception e) { - printf("Invald argument, failed to parse float\n"); + printf("Invalid argument, failed to parse float\n"); showHelp(); return -1; } diff --git a/core/src/core.cpp b/core/src/core.cpp index a47601c2..acd2b695 100644 --- a/core/src/core.cpp +++ b/core/src/core.cpp @@ -327,7 +327,7 @@ int sdrpp_main(int argc, char* argv[]) { int biRes = backend::init(resDir); if (biRes < 0) { return biRes; } - // Intialize SmGui in normal mode + // Initialize SmGui in normal mode SmGui::init(false); if (!style::loadFonts(resDir)) { return -1; } diff --git a/core/src/server.cpp b/core/src/server.cpp index 8ad9fb7b..bb798d8b 100644 --- a/core/src/server.cpp +++ b/core/src/server.cpp @@ -83,7 +83,7 @@ namespace server { core::configManager.release(); modulesDir = std::filesystem::absolute(modulesDir).string(); - // Intialize SmGui in server mode + // Initialize SmGui in server mode SmGui::init(true); spdlog::info("Loading modules");