Skip to content

Commit

Permalink
correcting bad replace from reudaSetProperty to udaResetProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Jan 25, 2024
1 parent cf2eff0 commit e90c93b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion source/c_api/accAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ int udaGetProperty(const char* property, const CLIENT_FLAGS* client_flags)
* @return Void.
*/

void reudaSetProperty(const char* property, CLIENT_FLAGS* client_flags)
void udaResetProperty(const char* property, CLIENT_FLAGS* client_flags)
{
// User settings for Client and Server behaviour

Expand Down
2 changes: 1 addition & 1 deletion source/wrappers/c++/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void uda::Client::setProperty(Property prop, bool value)
throw UDAException("Unknown property");
}

value ? udaSetProperty(name.c_str()) : reudaSetProperty(name.c_str());
value ? udaSetProperty(name.c_str()) : udaResetProperty(name.c_str());
}

void uda::Client::setProperty(Property prop, int value)
Expand Down
2 changes: 1 addition & 1 deletion source/wrappers/fortran/accAPI_F.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ extern void resetidamproperty_(char* property, int lproperty)
strncpy(s, property, lproperty);
s[lproperty] = '\0';
s = TrimString(s);
reudaSetProperty(s);
udaResetProperty(s);
free( s);
}

Expand Down
2 changes: 1 addition & 1 deletion source/wrappers/idl/idam_dlm.c
Original file line number Diff line number Diff line change
Expand Up @@ -6877,7 +6877,7 @@ resetproperty(int argc, IDL_VPTR argv[], char* argk)
IDL_ENSURE_STRING(argv[0]); // Single String
IDL_ENSURE_SCALAR(argv[0]);
CLIENT_FLAGS* client_flags = udaClientFlags();
reudaSetProperty((char*)IDL_STRING_STR(&argv[0]->value.str), client_flags);
udaResetProperty((char*)IDL_STRING_STR(&argv[0]->value.str), client_flags);
return (IDL_GettmpLong(0));
}

Expand Down
4 changes: 2 additions & 2 deletions source/wrappers/java/idam_jni.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ JNIEXPORT jint JNICALL Java_jIdam_Idam_udaGetProperty(JNIEnv* env, jobject obj,
return (value);
}

JNIEXPORT void JNICALL Java_jIdam_Idam_reudaSetProperty(JNIEnv* env, jobject obj, jstring _property)
JNIEXPORT void JNICALL Java_jIdam_Idam_udaResetProperty(JNIEnv* env, jobject obj, jstring _property)
{
const char* property = (*env)->GetStringUTFChars(env, _property, NULL);
if (property == NULL) return;
reudaSetProperty(property, udaClientFlags());
udaResetProperty(property, udaClientFlags());
(*env)->ReleaseStringUTFChars(env, _property, property);
}

Expand Down
4 changes: 2 additions & 2 deletions source/wrappers/java/idam_jni.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e90c93b

Please sign in to comment.