-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
dds config tool repair #13681
dds config tool repair #13681
Conversation
c20bd3c
to
2289871
Compare
4fbc5d8
to
97b51f5
Compare
97b51f5
to
07bbd98
Compare
common/dds-model.cpp
Outdated
@@ -15,6 +18,12 @@ using namespace rs2; | |||
using rsutils::json; | |||
using rsutils::type::ip_address; | |||
|
|||
uint32_t const GET_ETH_CONFIG = 0xBB; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better that the constants will be declared as static
. in this specific case probably does not matter, but it's a "best practice".
static
will tell the compiler that the constants are declared for this compilation unit only (this file) and they won't clash with other similarly named symbols in the symbol table.
Another way to do it is to declare them in a nameless namespace.
namespace {
uint32_t const GET_ETH_CONFIG = 0xBB;
....
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw we mainly use namespace, so I chose to use that unfortunately it affects all of the file and shows all of it in the diff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw we mainly use namespace, so I chose to use that unfortunately it affects all of the file and shows all of it in the diff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can close the namespace after the constants definition, not at the end of file, this way rest of file won't be changed.
What actually happens is that the compiler internally generates a name and a using
statement that uses that name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made that change thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When viewer window is minimized DDS settings might not be shown. Is it possible to add a scroll bar to the settings window?
…y-Zini/librealsense into viewer-dds-config-tool-repair
I added a scroll bar to the settings window 👍 |
6d8d339
to
5a622f1
Compare
5a622f1
to
b11b18f
Compare
Fix according to comments on PR #13628
Tracked on : [RSDEV-2884]