Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug calling set/get accessors. #38

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Conversation

nmoinvaz
Copy link
Contributor

Get accessors were returning false.
setInt64Property should have been setInt64Property

Get accessors were returning false.
setInt64Property should have been setInt64Property
@nmoinvaz nmoinvaz added the bug Something isn't working label Aug 16, 2024
@nmoinvaz nmoinvaz enabled auto-merge (rebase) August 16, 2024 21:09
@@ -217,6 +217,8 @@ bool Simple_Invoke(void *SimpleContext, echandle MethodDictionaryHandle, echandl
} else if (strcmp(Method, "startValueRequest") == 0) {
RetVal = Simple_StartValueRequest(Simple);
IDictionary_AddInt(ReturnDictionaryHandle, "returnValue", RetVal, &ItemHandle);
} else {
RetVal = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

observation/nit: I never liked the idea of defaulting to a successful value. In this case it's probably less fragile than trying to set RetVal = true in all the accessors.

@nmoinvaz nmoinvaz merged commit fc004f5 into dev Aug 16, 2024
5 checks passed
@nmoinvaz nmoinvaz deleted the nathan/dev/accessor-bugs branch August 16, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants