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

Use getIceProperty as appropriate #3153

Merged
merged 3 commits into from
Nov 15, 2024

Conversation

bernardnormier
Copy link
Member

This PR replaces various calls to getPropertyXxx by calls to getIcePropertyXxx.

@@ -200,7 +200,7 @@ Test::TestHelper::getTestEndpoint(const Ice::PropertiesPtr& properties, int num,
std::string protocol = prot;
if (protocol.empty())
{
protocol = properties->getPropertyWithDefault("Ice.Default.Protocol", "default");
Copy link
Member Author

Choose a reason for hiding this comment

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

This getPropertyWithDefault did not make sense.

transport default means "use the transport onfigured by Ice.Default.Protocol, and the default Ice.Default.Protocol is tcp. Setting Ice.Default.Protocol to 'default' should be disallowed since it's circular.

@@ -200,7 +200,7 @@ Test::TestHelper::getTestEndpoint(const Ice::PropertiesPtr& properties, int num,
std::string protocol = prot;
if (protocol.empty())
{
protocol = properties->getPropertyWithDefault("Ice.Default.Protocol", "default");
protocol = properties->getIceProperty("Ice.Default.Protocol");
Copy link
Member Author

Choose a reason for hiding this comment

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

This returns tcp when Ice.Default.Protocol is not set. The test scripts do set Ice.Default.Protocol.

Copy link
Member

@externl externl left a comment

Choose a reason for hiding this comment

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

Looks good!

@bernardnormier bernardnormier merged commit 54548fe into zeroc-ice:main Nov 15, 2024
19 checks passed
@bernardnormier bernardnormier deleted the default-encoding branch December 9, 2024 17:10
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this pull request Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants