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

Style: Cleanup code using text_editor/completion/use_single_quotes #51642

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

akien-mga
Copy link
Member

Follow-up to #51628.

Fixes one cases where the setting was not respected, otherwise it's just style cleanup.

@akien-mga akien-mga added this to the 4.0 milestone Aug 13, 2021
@akien-mga akien-mga requested review from a team as code owners August 13, 2021 19:25
text_to_drop += "\"" + path.c_escape() + "\"";
text_to_drop += path.c_escape().quote(quote_style);
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 wasn't respecting the setting.

Comment on lines +2672 to +2673
String path = "/root/" + E->key();
ScriptCodeCompletionOption option(path.quote(quote_style), ScriptCodeCompletionOption::KIND_NODE_PATH);
Copy link
Member Author

Choose a reason for hiding this comment

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

Refactored a bit to be able to use String::quote() like in other calls.

@akien-mga akien-mga force-pushed the cleanup-use_single_quotes branch from 384cbc1 to 81512a3 Compare August 13, 2021 19:28
@akien-mga akien-mga merged commit 14a2e59 into godotengine:master Aug 13, 2021
@akien-mga akien-mga deleted the cleanup-use_single_quotes branch August 13, 2021 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant