Merge pull request #802 from dforsi/fix/typos

Fix spelling errors
This commit is contained in:
AlexandreRouma 2022-07-10 00:05:40 +02:00 committed by GitHub
commit 76b41cb9ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -330,7 +330,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; }

View File

@ -84,7 +84,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");